- java.lang.Object
-
- org.mal_lang.langspec.Variable
-
public final class Variable extends Object
Immutable class representing a variable of an asset in a MAL language.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetgetAsset()Returns the asset of thisVariableobject.StringgetName()Returns the name of thisVariableobject.StepExpressiongetStepExpression()Returns the step expression of thisVariableobject.VariablegetSuperVariable()Returns the super variable of thisVariableobject.booleanhasSuperVariable()Returns whether thisVariableobject has a super variable.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of thisVariableobject.- Returns:
- the name of this
Variableobject - Since:
- 1.0.0
-
getAsset
public Asset getAsset()
Returns the asset of thisVariableobject.- Returns:
- the asset of this
Variableobject - Since:
- 1.0.0
-
getStepExpression
public StepExpression getStepExpression()
Returns the step expression of thisVariableobject.- Returns:
- the step expression of this
Variableobject. - Since:
- 1.0.0
-
hasSuperVariable
public boolean hasSuperVariable()
Returns whether thisVariableobject has a super variable.- Returns:
- whether this
Variableobject has a super variable - Since:
- 1.*.0
-
getSuperVariable
public Variable getSuperVariable()
Returns the super variable of thisVariableobject.- Returns:
- the super variable of this
Variableobject - Throws:
UnsupportedOperationException- if thisVariableobject does not have a super variable- Since:
- 1.0.0
-
-