Module com.wyu4.snowberryjam
Class VariableReference
java.lang.Object
com.wyu4.snowberryjam.compiler.data.values.ValueHolder
com.wyu4.snowberryjam.compiler.data.values.VariableReference
A pointer to a variable stored in
LocalStorage-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVariableReference(ValueHolder name) Create a new Vairable ReferenceVariableReference(String name) Create a new Vairable Reference -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.ValueHolder
checkValueIsConditional, equals, fromNode, getArray, getPointer, getSize, getString, getType, isType, notEmpty, superEquals
-
Field Details
-
name
The name of the variable
-
-
Constructor Details
-
VariableReference
Create a new Vairable Reference- Parameters:
name- The name of the variable as a String
-
VariableReference
Create a new Vairable Reference- Parameters:
name- The name of the variable as aValueHolder
-
-
Method Details
-
getName
Get the name of the variable being pointed to- Returns:
- Name
-
getValue
Get the value of the variable being pointed to- Overrides:
getValuein classValueHolder- Returns:
- The value of the variable as an
Object
-
getId
Description copied from class:ValueHolderGet the ID of the value holder- Overrides:
getIdin classValueHolder- Returns:
SourceId.VARIABLE
-
toString
- Overrides:
toStringin classValueHolder
-