|
|||||||||
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.FSString
public class FSString
This class is used to give FrameScript its string data type.
Field Summary | |
---|---|
java.lang.String |
str
The string. |
Constructor Summary | |
---|---|
FSString(java.lang.String s)
Wraps a Java string. |
Method Summary | |
---|---|
boolean |
equals(Term t)
Compares two Terms for equality. |
Term |
eval(Instance currentObject,
StackFrame stackframe)
Evaluates a Term. |
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 |
Field Detail |
---|
public java.lang.String str
Constructor Detail |
---|
public FSString(java.lang.String s)
s
- the value of the stringMethod Detail |
---|
public Term eval(Instance currentObject, StackFrame stackframe) throws FSException
Term
eval
in class Term
currentObject
- 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 java.lang.String toString()
Term
toString
in class Term
public boolean equals(Term t)
Term
equals
in class Term
t
- Term to be compared to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |