- 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 Asset
getAsset()
Returns the asset of thisVariable
object.String
getName()
Returns the name of thisVariable
object.StepExpression
getStepExpression()
Returns the step expression of thisVariable
object.Variable
getSuperVariable()
Returns the super variable of thisVariable
object.boolean
hasSuperVariable()
Returns whether thisVariable
object has a super variable.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of thisVariable
object.- Returns:
- the name of this
Variable
object - Since:
- 1.0.0
-
getAsset
public Asset getAsset()
Returns the asset of thisVariable
object.- Returns:
- the asset of this
Variable
object - Since:
- 1.0.0
-
getStepExpression
public StepExpression getStepExpression()
Returns the step expression of thisVariable
object.- Returns:
- the step expression of this
Variable
object. - Since:
- 1.0.0
-
hasSuperVariable
public boolean hasSuperVariable()
Returns whether thisVariable
object has a super variable.- Returns:
- whether this
Variable
object has a super variable - Since:
- 1.*.0
-
getSuperVariable
public Variable getSuperVariable()
Returns the super variable of thisVariable
object.- Returns:
- the super variable of this
Variable
object - Throws:
UnsupportedOperationException
- if thisVariable
object does not have a super variable- Since:
- 1.0.0
-
-