org.erights.e.elang.visitors
Class CapSlang2JVisitor

java.lang.Object
  |
  +--org.erights.e.elang.visitors.CapSlang2JVisitor
All Implemented Interfaces:
ETreeVisitor

public class CapSlang2JVisitor
extends Object
implements ETreeVisitor

Untamed:

Author:
Mark S. Miller

Field Summary
private  TextWriter myOut
           
 
Constructor Summary
CapSlang2JVisitor(TextWriter out)
          Enabled:
 
Method Summary
private  void block(Object obj)
           
private  void doco(String docComment)
           
 void run(Object obj)
          Enabled:
private  void run(Object a, Object b)
           
private  void run(Object a, Object b, Object c)
           
private  void run(Object a, Object b, Object c, Object d)
           
private  void run(Object a, Object b, Object c, Object d, Object e)
           
private  void run(Object a, Object b, Object c, Object d, Object e, Object f)
           
private  void runAll(ENode[] eNodes, String sep)
           
private  void typeExpr(EExpr guardExpr)
           
 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 subs, 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 pattern, 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:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myOut

private final TextWriter myOut
Constructor Detail

CapSlang2JVisitor

public CapSlang2JVisitor(TextWriter out)
Enabled:

Method Detail

run

public void run(Object obj)
Enabled:


run

private void run(Object a,
                 Object b)

run

private void run(Object a,
                 Object b,
                 Object c)

run

private void run(Object a,
                 Object b,
                 Object c,
                 Object d)

run

private void run(Object a,
                 Object b,
                 Object c,
                 Object d,
                 Object e)

run

private void run(Object a,
                 Object b,
                 Object c,
                 Object d,
                 Object e,
                 Object f)

runAll

private void runAll(ENode[] eNodes,
                    String sep)

block

private void block(Object obj)

doco

private void doco(String docComment)

typeExpr

private void typeExpr(EExpr guardExpr)

visitAssignExpr

public Object visitAssignExpr(ENode optOriginal,
                              AtomicExpr noun,
                              EExpr rValue)
Enabled:

Specified by:
visitAssignExpr in interface ETreeVisitor
See Also:
The Kernel-E Assignment Expression

visitCallExpr

public Object visitCallExpr(ENode optOriginal,
                            EExpr recip,
                            String verb,
                            EExpr[] args)
Enabled:

Specified by:
visitCallExpr in interface ETreeVisitor
See Also:
The Kernel-E Call Expression

visitCatchExpr

public Object visitCatchExpr(ENode optOriginal,
                             EExpr attempt,
                             Pattern patt,
                             EExpr catcher)
Enabled:

Specified by:
visitCatchExpr in interface ETreeVisitor
See Also:
The Kernel-E Try-Catch Expression

visitCdrPattern

public Object visitCdrPattern(ENode optOriginal,
                              ListPattern subs,
                              Pattern rest)
Enabled:

Specified by:
visitCdrPattern in interface ETreeVisitor
See Also:
The Kernel-E Tuple Pattern

visitDefineExpr

public Object visitDefineExpr(ENode optOriginal,
                              Pattern patt,
                              EExpr rValue)
Enabled:

Specified by:
visitDefineExpr in interface ETreeVisitor
See Also:
The Kernel-E Define Expression

visitEMethod

public Object visitEMethod(ENode optOriginal,
                           String docComment,
                           String verb,
                           Pattern[] patterns,
                           EExpr returnGuard,
                           EExpr body)
Enabled:

Specified by:
visitEMethod in interface ETreeVisitor
See Also:
The Kernel-E Method Node

visitEscapeExpr

public Object visitEscapeExpr(ENode optOriginal,
                              Pattern hatch,
                              EExpr body)
Enabled:

Specified by:
visitEscapeExpr in interface ETreeVisitor
See Also:
The Kernel-E Escape Expression

visitEScript

public Object visitEScript(ENode optOriginal,
                           EMethodNode[] optMethods,
                           Matcher optMatcher)
Enabled:

Specified by:
visitEScript in interface ETreeVisitor
See Also:
The Kernel-E Script Node

visitFinallyExpr

public Object visitFinallyExpr(ENode optOriginal,
                               EExpr attempt,
                               EExpr unwinder)
Enabled:

Specified by:
visitFinallyExpr in interface ETreeVisitor
See Also:
The Kernel-E Try-Finally Expression

visitFinalPattern

public Object visitFinalPattern(ENode optOriginal,
                                String varName,
                                EExpr valueGuardExpr)
Enabled:

Specified by:
visitFinalPattern in interface ETreeVisitor
See Also:
The Kernel-E Final Pattern

visitHideExpr

public Object visitHideExpr(ENode optOriginal,
                            EExpr body)
Enabled:

Specified by:
visitHideExpr in interface ETreeVisitor
See Also:
The Kernel-E Hide Expression

visitIfExpr

public Object visitIfExpr(ENode optOriginal,
                          EExpr test,
                          EExpr then,
                          EExpr els)
Enabled:

Specified by:
visitIfExpr in interface ETreeVisitor
See Also:
The Kernel-E If Expression

visitIgnorePattern

public Object visitIgnorePattern(ENode optOriginal)
Enabled:

Specified by:
visitIgnorePattern in interface ETreeVisitor
See Also:
The Kernel-E Ignore Pattern

visitListPattern

public Object visitListPattern(ENode optOriginal,
                               Pattern[] subs)
Enabled:

Specified by:
visitListPattern in interface ETreeVisitor
See Also:
The Kernel-E Tuple Pattern

visitLiteralExpr

public Object visitLiteralExpr(ENode optOriginal,
                               Object value)
Enabled:

Specified by:
visitLiteralExpr in interface ETreeVisitor
See Also:
The Kernel-E Literal Expression

visitMatchBindExpr

public Object visitMatchBindExpr(ENode optOriginal,
                                 EExpr specimen,
                                 Pattern patt)
Enabled:

Specified by:
visitMatchBindExpr in interface ETreeVisitor
See Also:
The Kernel-E Match-Bind Expression

visitMatcher

public Object visitMatcher(ENode optOriginal,
                           Pattern pattern,
                           EExpr body)
Enabled:

Specified by:
visitMatcher in interface ETreeVisitor
See Also:
The Kernel-E Matcher Node

visitNounExpr

public Object visitNounExpr(ENode optOriginal,
                            String varName)
Enabled:

Specified by:
visitNounExpr in interface ETreeVisitor
See Also:
The Kernel-E Noun Expression

visitObjectExpr

public Object visitObjectExpr(ENode optOriginal,
                              String docComment,
                              String optFQN,
                              EExpr[] auditors,
                              EScript eScript)
Enabled:

Specified by:
visitObjectExpr in interface ETreeVisitor
See Also:
The Kernel-E Object Expression

visitQuasiLiteralExpr

public Object visitQuasiLiteralExpr(ENode optOriginal,
                                    int index)
Enabled:

Specified by:
visitQuasiLiteralExpr in interface ETreeVisitor

visitQuasiLiteralPatt

public Object visitQuasiLiteralPatt(ENode optOriginal,
                                    int index)
Enabled:

Specified by:
visitQuasiLiteralPatt in interface ETreeVisitor

visitQuasiPatternExpr

public Object visitQuasiPatternExpr(ENode optOriginal,
                                    int index)
Enabled:

Specified by:
visitQuasiPatternExpr in interface ETreeVisitor

visitQuasiPatternPatt

public Object visitQuasiPatternPatt(ENode optOriginal,
                                    int index)
Enabled:

Specified by:
visitQuasiPatternPatt in interface ETreeVisitor

visitScopeExpr

public Object visitScopeExpr(ENode optOriginal)
Enabled:

Specified by:
visitScopeExpr in interface ETreeVisitor

visitSendExpr

public Object visitSendExpr(ENode optOriginal,
                            EExpr recip,
                            String verb,
                            EExpr[] args)
Enabled:

Specified by:
visitSendExpr in interface ETreeVisitor
See Also:
The Kernel-E Send Expression

visitSeqExpr

public Object visitSeqExpr(ENode optOriginal,
                           EExpr[] subs)
Enabled:

Specified by:
visitSeqExpr in interface ETreeVisitor
See Also:
The Kernel-E Sequence Expression

visitSlotExpr

public Object visitSlotExpr(ENode optOriginal,
                            AtomicExpr noun)
Enabled:

Specified by:
visitSlotExpr in interface ETreeVisitor

visitSuchThatPattern

public Object visitSuchThatPattern(ENode optOriginal,
                                   Pattern patt,
                                   EExpr test)
Enabled:

Specified by:
visitSuchThatPattern in interface ETreeVisitor
See Also:
The Kernel-E Such-That Pattern

visitVarPattern

public Object visitVarPattern(ENode optOriginal,
                              String varName,
                              EExpr slotGuardExpr)
Enabled:

Specified by:
visitVarPattern in interface ETreeVisitor
See Also:
The Kernel-E Var Pattern


comments?