org.hecl
Class SubstThing
- java.lang.Object
-
- org.hecl.SubstThing
-
-
Field Summary
Fields Modifier and Type Field and Description longcacheversion
-
Constructor Summary
Constructors Constructor and Description SubstThing()SubstThing(java.lang.String s)Creates a newSubstThinginstance from a string, which is the variable name to reference.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description RealThingdeepcopy()deepcopyreturns a copy of the SubstThing.static Thingget(Interp interp, Thing thing)getreturns the *value* of a SubstThing - in other words, the Thing that its varName is pointing to.java.lang.StringgetStringRep()getStringRepreturns a string representation of the SubstThing.java.lang.Stringthingclass()
-
-
-
Constructor Detail
-
SubstThing
public SubstThing()
-
SubstThing
public SubstThing(java.lang.String s)
Creates a newSubstThinginstance from a string, which is the variable name to reference.- Parameters:
s- aStringvalue
-
-
Method Detail
-
thingclass
public java.lang.String thingclass()
- Specified by:
thingclassin interfaceRealThing
-
get
public static Thing get(Interp interp, Thing thing) throws HeclException
getreturns the *value* of a SubstThing - in other words, the Thing that its varName is pointing to. We use a cacheing mechanism devised by Salvatore Sanfilippo to avoid unnecessary lookups.- Parameters:
interp- anInterpvaluething- aThingvalue- Returns:
- a
Thingvalue - Throws:
HeclException- if an error occurs
-
deepcopy
public RealThing deepcopy()
deepcopyreturns a copy of the SubstThing.
-
getStringRep
public java.lang.String getStringRep()
getStringRepreturns a string representation of the SubstThing.- Specified by:
getStringRepin interfaceRealThing- Returns:
- a
Stringvalue
-
-
DataMelt 3.0 © DataMelt by jWork.ORG