org.hecl
Class CodeThing
- java.lang.Object
-
- org.hecl.CodeThing
-
-
Field Summary
Fields Modifier and Type Field and Description booleanmarksubst
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddStanza(Interp interp, Thing[] argv, int lineno)TheaddStanzamethod adds a new command and its arguments.RealThingdeepcopy()CodeThing'sdeepcopymethod makes a copy of all the stanzas, which in turn copy all their objects.static CodeThingget(Interp interp, Thing thing)getreturns a CodeThing object from any kind of Thing - or returns an error.java.lang.StringgetStringRep()ThegetStringRepmethod returns a String representation of the commands it represents.Thingrun(Interp interp)Therunmethod runs the CodeThing.java.lang.Stringthingclass()
-
-
-
Method Detail
-
thingclass
public java.lang.String thingclass()
- Specified by:
thingclassin interfaceRealThing
-
get
public static CodeThing get(Interp interp, Thing thing) throws HeclException
getreturns a CodeThing object from any kind of Thing - or returns an error.- Parameters:
interp- anInterpvaluething- aThingvalue- Returns:
- a
CodeThingvalue - Throws:
HeclException- if an error occurs
-
deepcopy
public RealThing deepcopy() throws HeclException
CodeThing'sdeepcopymethod makes a copy of all the stanzas, which in turn copy all their objects.- Specified by:
deepcopyin interfaceRealThing- Returns:
- a
RealThingvalue - Throws:
HeclException- if an error occurs
-
addStanza
public void addStanza(Interp interp, Thing[] argv, int lineno)
TheaddStanzamethod adds a new command and its arguments.- Parameters:
interp-Interpvalueargv-Thing[]valuelineno-
-
run
public Thing run(Interp interp) throws HeclException
Therunmethod runs the CodeThing.- Parameters:
interp-Interpvalue- Throws:
HeclException- if an error occurs
-
getStringRep
public java.lang.String getStringRep()
ThegetStringRepmethod returns a String representation of the commands it represents.- Specified by:
getStringRepin interfaceRealThing- Returns:
- a
Stringvalue.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG