|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.runtime.ClassTraversal.Empty
jist.runtime.RewriterTraversalModifyEntityReferences
class RewriterTraversalModifyEntityReferences
Traversal object that converts any references to entity objects within a class into EntityRef objects. This means that all method parameter and method return types, as well as all field types, that implement the JistAPI.Entity interface are converted into the EntityRef type.
Controller.newEntityReference(jist.runtime.Entity)
,
JistAPI.Entity
,
EntityRef
Field Summary | |
---|---|
private org.apache.bcel.generic.InstructionFactory |
ifc
class instruction factory. |
private Rewriter |
rewriter
primary rewriter. |
Constructor Summary | |
---|---|
RewriterTraversalModifyEntityReferences(Rewriter rewriter)
Create rewriter object to modify all entity references. |
Method Summary | |
---|---|
org.apache.bcel.generic.ClassGen |
doClass(org.apache.bcel.generic.ClassGen cg)
Upcall to process class before field and method processing. |
org.apache.bcel.generic.FieldGen |
doField(org.apache.bcel.generic.ClassGen cg,
org.apache.bcel.generic.FieldGen fg)
Upcall to process field. |
void |
doInstruction(org.apache.bcel.generic.ClassGen cg,
org.apache.bcel.generic.MethodGen mg,
org.apache.bcel.generic.InstructionHandle ih,
org.apache.bcel.generic.Instruction inst)
Upcall to process instruction. Note that instructions can be inserted and deleted directly using the BCEL API, and therefore this method returns void . |
org.apache.bcel.generic.MethodGen |
doMethod(org.apache.bcel.generic.ClassGen cg,
org.apache.bcel.generic.MethodGen mg)
Upcall to process method before instruction processing. |
Methods inherited from class jist.runtime.ClassTraversal.Empty |
---|
doClassPost, doMethodPost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.bcel.generic.InstructionFactory ifc
private Rewriter rewriter
Constructor Detail |
---|
public RewriterTraversalModifyEntityReferences(Rewriter rewriter)
rewriter
- reference to primary rewriterMethod Detail |
---|
public org.apache.bcel.generic.ClassGen doClass(org.apache.bcel.generic.ClassGen cg)
doClass
in interface ClassTraversal.Visitor
doClass
in class ClassTraversal.Empty
cg
- BCEL class generator object to process
public org.apache.bcel.generic.FieldGen doField(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.FieldGen fg) throws java.lang.ClassNotFoundException
doField
in interface ClassTraversal.Visitor
doField
in class ClassTraversal.Empty
cg
- BCEL class generator objectfg
- BCEL field generator object to process
java.lang.ClassNotFoundException
public org.apache.bcel.generic.MethodGen doMethod(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.MethodGen mg) throws java.lang.ClassNotFoundException
doMethod
in interface ClassTraversal.Visitor
doMethod
in class ClassTraversal.Empty
cg
- BCEL class generator objectmg
- BCEL method generator object to process
java.lang.ClassNotFoundException
public void doInstruction(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.MethodGen mg, org.apache.bcel.generic.InstructionHandle ih, org.apache.bcel.generic.Instruction inst) throws java.lang.ClassNotFoundException
void
.
doInstruction
in interface ClassTraversal.Visitor
doInstruction
in class ClassTraversal.Empty
cg
- BCEL class generator objectmg
- BCEL method generator objectih
- BCEL instruction handle object to processinst
- BCEL instruction object to process
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |