|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elang.evm.ParseNode | +--org.erights.e.elang.evm.ENode | +--org.erights.e.elang.evm.EMethod
Safe:
Field Summary | |
private EExpr |
myBody
|
private String |
myDocComment
|
private int |
myLocalCount
|
private Pattern[] |
myPatterns
|
private EExpr |
myReturnGuard
|
private String |
myVerb
|
Fields inherited from class org.erights.e.elang.evm.ENode |
|
Fields inherited from class org.erights.e.elang.evm.ParseNode |
NUM_PR, PR_ASSIGN, PR_CALL, PR_COMP, PR_EEXPR, PR_LISTPATT, PR_ORDER, PR_PATTERN, PR_PRIM, PR_START |
Constructor Summary | |
EMethod(SourceSpan optSpan,
String docComment,
String verb,
Pattern[] patterns,
EExpr returnGuard,
EExpr body)
Enabled: The constructor interns the verb |
|
EMethod(SourceSpan optSpan,
String docComment,
String verb,
Pattern[] patterns,
EExpr returnGuard,
EExpr body,
int localCount)
Enabled: Create the EMethod with the number of locals to allocate to a stack frame. |
Method Summary | |
EExpr |
body()
Enabled: |
protected StaticScope |
computeStaticScope()
When staticScope() is first requested on a given node, it calls computeStaticScope() to do the actual computation, which is then remembered. |
String |
docComment()
Enabled: |
Object |
execute(Object self,
Object[] args)
Enabled: |
boolean |
matchBind(ConstList args,
Object specimen,
FlexList bindings)
Enabled: Ignores docComment |
Pattern[] |
patterns()
Enabled: |
EExpr |
returnGuard()
Enabled: |
void |
subPrintOn(TextWriter out,
int priority)
Enabled: |
String |
verb()
Enabled: |
Object |
welcome(ETreeVisitor visitor)
Enabled: |
Methods inherited from class org.erights.e.elang.evm.ENode |
cleanCopy, copy, getOptPatternMap, getOptScopeMap, getPatternMap, getScopeMap, qbuild, setPatternMap, setScopeMap, staticScope, synEnv |
Methods inherited from class org.erights.e.elang.evm.ParseNode |
__printOn, asText, getOptSpan, lnPrintOn, lnPrintOn, matchBind, matchBind, matchBind, printListOn, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final String myDocComment
private final String myVerb
private final Pattern[] myPatterns
private final EExpr myReturnGuard
private final EExpr myBody
private final int myLocalCount
Constructor Detail |
public EMethod(SourceSpan optSpan, String docComment, String verb, Pattern[] patterns, EExpr returnGuard, EExpr body)
public EMethod(SourceSpan optSpan, String docComment, String verb, Pattern[] patterns, EExpr returnGuard, EExpr body, int localCount)
Method Detail |
public Object welcome(ETreeVisitor visitor)
welcome
in class ENode
protected StaticScope computeStaticScope()
computeStaticScope
in class ENode
public Object execute(Object self, Object[] args)
public boolean matchBind(ConstList args, Object specimen, FlexList bindings)
matchBind
in interface MatchMaker
matchBind
in class ParseNode
public String docComment()
public String verb()
public Pattern[] patterns()
public EExpr returnGuard()
public EExpr body()
public void subPrintOn(TextWriter out, int priority) throws IOException
subPrintOn
in class ParseNode
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |