|
|||||||||||
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.Pattern | +--org.erights.e.elang.evm.QuasiPatternPatt
Untamed: BNF: '@' '{'
Not part of a valid E program, but a part of an E parse tree
acting as a MatchMaker (as a pattern to be matched against an E
pattern).
Field Summary
private int
myIndex
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
QuasiPatternPatt(SourceSpan optSpan,
int index)
Enabled:
Method Summary
protected StaticScope
computeStaticScope()
When staticScope() is first requested on a given node, it calls
computeStaticScope() to do the actual computation, which is
then remembered.
int
index()
Enabled:
boolean
matchBind(ConstList args,
Object specimen,
FlexList bindings)
Enabled:
String
optName()
Enabled:
void
subPrintOn(TextWriter out,
int priority)
Enabled:
(package private) void
testMatch(EvalContext ctx,
Object specimen,
OneArgFunc optEjector)
Throws an IncompleteQuasiException rather than indicating match failure
Object
welcome(ETreeVisitor visitor)
Enabled:
Methods inherited from class org.erights.e.elang.evm.Pattern
__printOn, substitute
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
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
myIndex
private final int myIndex
Constructor Detail
QuasiPatternPatt
public QuasiPatternPatt(SourceSpan optSpan,
int index)
Method Detail
welcome
public Object welcome(ETreeVisitor visitor)
computeStaticScope
protected StaticScope computeStaticScope()
ENode
computeStaticScope
in class ENode
testMatch
void testMatch(EvalContext ctx,
Object specimen,
OneArgFunc optEjector)
optName
public String optName()
index
public int index()
matchBind
public boolean matchBind(ConstList args,
Object specimen,
FlexList bindings)
matchBind
in interface MatchMaker
matchBind
in class ParseNode
subPrintOn
public void subPrintOn(TextWriter out,
int priority)
throws IOException
subPrintOn
in class ParseNode
Overview
Package
Class
Tree
Deprecated
Index
Help
Legend
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD