|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elang.visitors.KernelECopyVisitor
Safe:
Field Summary | |
private ETreeVisitor |
myDecorator
|
Constructor Summary | |
KernelECopyVisitor()
Enabled: Defaults to auto-decoration |
|
KernelECopyVisitor(ETreeVisitor decorator)
Enabled: |
Method Summary | |
(package private) KernelECopyVisitor |
nest()
Return a version of the receiver for a nested scope. |
(package private) static SourceSpan |
optSpan(ENode optNode)
|
Object |
run(Object optENode)
Enabled: For use from E. |
Object |
visitAssignExpr(ENode optOriginal,
AtomicExpr noun,
EExpr rValue)
Enabled: |
Object |
visitCallExpr(ENode optOriginal,
EExpr recip,
String verb,
EExpr[] args)
Enabled: |
Object |
visitCatchExpr(ENode optOriginal,
EExpr attempt,
Pattern patt,
EExpr catcher)
Enabled: |
Object |
visitCdrPattern(ENode optOriginal,
ListPattern start,
Pattern rest)
Enabled: |
Object |
visitDefineExpr(ENode optOriginal,
Pattern patt,
EExpr rValue)
Enabled: |
Object |
visitEMethod(ENode optOriginal,
String docComment,
String verb,
Pattern[] patterns,
EExpr returnGuard,
EExpr body)
Enabled: |
Object |
visitEscapeExpr(ENode optOriginal,
Pattern hatch,
EExpr body)
Enabled: |
Object |
visitEScript(ENode optOriginal,
EMethodNode[] optMethods,
Matcher optMatcher)
Enabled: |
Object |
visitFinallyExpr(ENode optOriginal,
EExpr attempt,
EExpr unwinder)
Enabled: |
Object |
visitFinalPattern(ENode optOriginal,
String varName,
EExpr valueGuardExpr)
Enabled: |
Object |
visitHideExpr(ENode optOriginal,
EExpr body)
Enabled: |
Object |
visitIfExpr(ENode optOriginal,
EExpr test,
EExpr then,
EExpr els)
Enabled: |
Object |
visitIgnorePattern(ENode optOriginal)
Enabled: |
Object |
visitListPattern(ENode optOriginal,
Pattern[] subs)
Enabled: |
Object |
visitLiteralExpr(ENode optOriginal,
Object value)
Enabled: |
Object |
visitMatchBindExpr(ENode optOriginal,
EExpr specimen,
Pattern patt)
Enabled: |
Object |
visitMatcher(ENode optOriginal,
Pattern patt,
EExpr body)
Enabled: |
Object |
visitNounExpr(ENode optOriginal,
String varName)
Enabled: |
Object |
visitObjectExpr(ENode optOriginal,
String docComment,
String optFQN,
EExpr[] auditors,
EScript eScript)
Enabled: |
Object |
visitQuasiLiteralExpr(ENode optOriginal,
int index)
Enabled: |
Object |
visitQuasiLiteralPatt(ENode optOriginal,
int index)
Enabled: |
Object |
visitQuasiPatternExpr(ENode optOriginal,
int index)
Enabled: |
Object |
visitQuasiPatternPatt(ENode optOriginal,
int index)
Enabled: |
Object |
visitScopeExpr(ENode optOriginal)
Enabled: |
Object |
visitSendExpr(ENode optOriginal,
EExpr recip,
String verb,
EExpr[] args)
Enabled: |
Object |
visitSeqExpr(ENode optOriginal,
EExpr[] subs)
Enabled: |
Object |
visitSlotExpr(ENode optOriginal,
AtomicExpr noun)
Enabled: |
Object |
visitSuchThatPattern(ENode optOriginal,
Pattern patt,
EExpr test)
Enabled: |
Object |
visitVarPattern(ENode optOriginal,
String varName,
EExpr slotGuardExpr)
Enabled: |
EExpr |
xformEExpr(EExpr optEExpr)
Enabled: |
EExpr[] |
xformEExprs(EExpr[] eExprs)
Enabled: |
EScript |
xformEScript(EScript eScript)
Enabled: |
Matcher |
xformMatcher(Matcher optMatcher)
Enabled: |
EMethod |
xformMethod(EMethod optMeth)
Enabled: |
ENode |
xformNode(ENode eNode)
Enabled: |
Pattern |
xformPattern(Pattern optPatt)
Enabled: |
Pattern[] |
xformPatterns(Pattern[] patts)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final ETreeVisitor myDecorator
Constructor Detail |
public KernelECopyVisitor(ETreeVisitor decorator)
public KernelECopyVisitor()
Method Detail |
static SourceSpan optSpan(ENode optNode)
KernelECopyVisitor nest()
public Object run(Object optENode)
optENode
- must be either null, an ENode, or an array of ENodes.public ENode xformNode(ENode eNode)
public EExpr xformEExpr(EExpr optEExpr)
public EExpr[] xformEExprs(EExpr[] eExprs)
public Object visitAssignExpr(ENode optOriginal, AtomicExpr noun, EExpr rValue)
visitAssignExpr
in interface ETreeVisitor
public Object visitCallExpr(ENode optOriginal, EExpr recip, String verb, EExpr[] args)
visitCallExpr
in interface ETreeVisitor
public Object visitDefineExpr(ENode optOriginal, Pattern patt, EExpr rValue)
visitDefineExpr
in interface ETreeVisitor
public Object visitEscapeExpr(ENode optOriginal, Pattern hatch, EExpr body)
visitEscapeExpr
in interface ETreeVisitor
public Object visitHideExpr(ENode optOriginal, EExpr body)
visitHideExpr
in interface ETreeVisitor
public Object visitIfExpr(ENode optOriginal, EExpr test, EExpr then, EExpr els)
visitIfExpr
in interface ETreeVisitor
public Object visitLiteralExpr(ENode optOriginal, Object value)
visitLiteralExpr
in interface ETreeVisitor
public Object visitMatchBindExpr(ENode optOriginal, EExpr specimen, Pattern patt)
visitMatchBindExpr
in interface ETreeVisitor
public Object visitNounExpr(ENode optOriginal, String varName)
visitNounExpr
in interface ETreeVisitor
public Object visitObjectExpr(ENode optOriginal, String docComment, String optFQN, EExpr[] auditors, EScript eScript)
visitObjectExpr
in interface ETreeVisitor
public Object visitScopeExpr(ENode optOriginal)
visitScopeExpr
in interface ETreeVisitor
public Object visitSendExpr(ENode optOriginal, EExpr recip, String verb, EExpr[] args)
visitSendExpr
in interface ETreeVisitor
public Object visitSeqExpr(ENode optOriginal, EExpr[] subs)
visitSeqExpr
in interface ETreeVisitor
public Object visitSlotExpr(ENode optOriginal, AtomicExpr noun)
visitSlotExpr
in interface ETreeVisitor
public Object visitCatchExpr(ENode optOriginal, EExpr attempt, Pattern patt, EExpr catcher)
visitCatchExpr
in interface ETreeVisitor
public Object visitFinallyExpr(ENode optOriginal, EExpr attempt, EExpr unwinder)
visitFinallyExpr
in interface ETreeVisitor
public Pattern xformPattern(Pattern optPatt)
public Pattern[] xformPatterns(Pattern[] patts)
public Object visitFinalPattern(ENode optOriginal, String varName, EExpr valueGuardExpr)
visitFinalPattern
in interface ETreeVisitor
public Object visitVarPattern(ENode optOriginal, String varName, EExpr slotGuardExpr)
visitVarPattern
in interface ETreeVisitor
public Object visitListPattern(ENode optOriginal, Pattern[] subs)
visitListPattern
in interface ETreeVisitor
public Object visitCdrPattern(ENode optOriginal, ListPattern start, Pattern rest)
visitCdrPattern
in interface ETreeVisitor
public Object visitIgnorePattern(ENode optOriginal)
visitIgnorePattern
in interface ETreeVisitor
public Object visitSuchThatPattern(ENode optOriginal, Pattern patt, EExpr test)
visitSuchThatPattern
in interface ETreeVisitor
public EScript xformEScript(EScript eScript)
public EMethod xformMethod(EMethod optMeth)
public Matcher xformMatcher(Matcher optMatcher)
public Object visitEScript(ENode optOriginal, EMethodNode[] optMethods, Matcher optMatcher)
visitEScript
in interface ETreeVisitor
public Object visitEMethod(ENode optOriginal, String docComment, String verb, Pattern[] patterns, EExpr returnGuard, EExpr body)
visitEMethod
in interface ETreeVisitor
public Object visitMatcher(ENode optOriginal, Pattern patt, EExpr body)
visitMatcher
in interface ETreeVisitor
public Object visitQuasiLiteralExpr(ENode optOriginal, int index)
visitQuasiLiteralExpr
in interface ETreeVisitor
public Object visitQuasiPatternExpr(ENode optOriginal, int index)
visitQuasiPatternExpr
in interface ETreeVisitor
public Object visitQuasiLiteralPatt(ENode optOriginal, int index)
visitQuasiLiteralPatt
in interface ETreeVisitor
public Object visitQuasiPatternPatt(ENode optOriginal, int index)
visitQuasiPatternPatt
in interface ETreeVisitor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |