|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectunsw.cse.framescript.Term
unsw.cse.framescript.Frame
public abstract class Frame
This is an abstract class that provides the basic functionality inherent in all types of frames.
| Method Summary | |
|---|---|
abstract java.lang.String |
asText()
Writes the frame as FrameScript. |
boolean |
equals(Term t)
Compares two Terms for equality. |
Term |
eval(Instance currentObject,
StackFrame stackframe)
Evaluates a Term. |
void |
initFrame()
Initialises the frame. |
java.lang.String |
toString()
Turns the Term into a string. |
| Methods inherited from class unsw.cse.framescript.Term |
|---|
assign, asString, fullMatch, indents, mapVars, match |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void initFrame()
throws FSException
FSException
public Term eval(Instance currentObject,
StackFrame stackframe)
throws FSException
Term
eval in class TermcurrentObject - the enclosing instance frame for the code being evaluatedstackframe - StackFrame that holds the values for any variables
FSException - if any errors occur in performing the evaluationpublic boolean equals(Term t)
Term
equals in class Termt - Term to be compared to
public java.lang.String toString()
Term
toString in class Termpublic abstract java.lang.String asText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||