Package com.treescrub.spedran.data
Class VariableScope
- java.lang.Object
-
- com.treescrub.spedran.data.VariableScope
-
public class VariableScope extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariableScope.ScopeTypeThe type of scope that a variable has.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getLevel()Gets the associated level ID if the scope type isVariableScope.ScopeType.SINGLE_LEVEL.VariableScope.ScopeTypegetType()Gets theVariableScope.ScopeTypefor the variable.StringtoString()
-
-
-
Method Detail
-
getType
public VariableScope.ScopeType getType()
Gets theVariableScope.ScopeTypefor the variable.- Returns:
- a
ScopeType
-
getLevel
public Optional<String> getLevel()
Gets the associated level ID if the scope type isVariableScope.ScopeType.SINGLE_LEVEL.- Returns:
- an
Optionalwith the level ID if the scope is limited to a single level - See Also:
Level,Spedran.getLevel(String)
-
-