edu.neu.ccs.demeterf.demfgen.dgp
Class StaticTrav
java.lang.Object
edu.neu.ccs.demeterf.FC
edu.neu.ccs.demeterf.demfgen.dgp.DGPFunc
edu.neu.ccs.demeterf.demfgen.dgp.TravGeneric
edu.neu.ccs.demeterf.demfgen.dgp.StaticTrav
- Direct Known Subclasses:
- ParStaticTrav, StaticBc, StaticTravCtx
public class StaticTrav
- extends TravGeneric
Generate CD specific traversal code that statically distinguishes traversable
types and calls to DemeterF dispatch functions when all child results have
returned.
Users will create new instances of StaticTrav as an alternative to the
usual DemeterF Traversal. It currently provides quite a boost in
performance compared to Java Reflection.
Method Summary |
java.lang.String |
buildin(java.lang.String b)
|
java.lang.String[] |
buildins()
|
java.lang.String |
docComment()
Documentation comment to be placed above the Class definition |
FC |
functionObj()
The function object responsible for function generation |
boolean |
genericInst()
|
java.lang.String |
method(java.lang.String pkg)
The stub method implementation; just needs to call the static method. |
java.lang.String |
primitive(java.lang.String p)
|
java.lang.String |
stubMethod()
The full static stub method within the generated class. |
java.lang.String |
superClass()
|
Methods inherited from class edu.neu.ccs.demeterf.demfgen.dgp.TravGeneric |
builtin, combine, combine, combine, combine, combine, combine, combine, control, fileClosing, fileOpening, finish, isAbstract, realControl, recur, typeargs |
Methods inherited from class edu.neu.ccs.demeterf.demfgen.dgp.DGPFunc |
argument, baseControl, builtins, fileName, fileSuffix, hasArgument, header, methodBody, methodName, methodReturn, override, startArgument, stubMethodBody, stubMethodName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticTrav
public StaticTrav()
functionObj
public FC functionObj()
- Description copied from class:
DGPFunc
- The function object responsible for function generation
- Specified by:
functionObj
in class TravGeneric
docComment
public java.lang.String docComment()
- Description copied from class:
DGPFunc
- Documentation comment to be placed above the Class definition
- Specified by:
docComment
in class DGPFunc
stubMethod
public java.lang.String stubMethod()
- Description copied from class:
DGPFunc
- The full static stub method within the generated class. This is called by the
method implementations to make the generated code cleaner. It is placed in
the DGP generated class by default.
- Overrides:
stubMethod
in class DGPFunc
method
public java.lang.String method(java.lang.String pkg)
- Description copied from class:
DGPFunc
- The stub method implementation; just needs to call the static method.
- Overrides:
method
in class DGPFunc
genericInst
public boolean genericInst()
- Specified by:
genericInst
in class TravGeneric
superClass
public java.lang.String superClass()
- Overrides:
superClass
in class TravGeneric
buildins
public java.lang.String[] buildins()
buildin
public java.lang.String buildin(java.lang.String b)
primitive
public java.lang.String primitive(java.lang.String p)
- Specified by:
primitive
in class TravGeneric