|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.runtime.ClassTraversal.Empty
jist.runtime.RewriterTraversalVerifyEntity
class RewriterTraversalVerifyEntity
Traversal object that ensures that a given entity obeys the specific coding norms of JIST applications. Specifically, JIST applications may not have entity objects that have static, abstract or native methods. All entity state should be declared private. All non-private methods should return void.
JistAPI.Entity
Field Summary | |
---|---|
private org.apache.bcel.generic.ConstantPoolGen |
cpg
class constant pool. |
private java.util.Vector |
errors
accumulated errors. |
private Rewriter |
rewriter
primary rewriter. |
Constructor Summary | |
---|---|
RewriterTraversalVerifyEntity(Rewriter rewriter)
Create rewriter object to perform entity verification. |
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.ClassGen |
doClassPost(org.apache.bcel.generic.ClassGen cg)
Upcall to process class after 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. |
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. |
java.lang.String[] |
getErrors()
Return accumulated entity verification errors. |
Methods inherited from class jist.runtime.ClassTraversal.Empty |
---|
doInstruction, doMethodPost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Rewriter rewriter
private java.util.Vector errors
private org.apache.bcel.generic.ConstantPoolGen cpg
Constructor Detail |
---|
public RewriterTraversalVerifyEntity(Rewriter rewriter)
rewriter
- reference to primary rewriterMethod Detail |
---|
public java.lang.String[] getErrors()
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.ClassGen doClassPost(org.apache.bcel.generic.ClassGen cg) throws java.lang.ClassNotFoundException
doClassPost
in interface ClassTraversal.Visitor
doClassPost
in class ClassTraversal.Empty
cg
- BCEL class generator object to process
java.lang.ClassNotFoundException
public org.apache.bcel.generic.FieldGen doField(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.FieldGen fg)
doField
in interface ClassTraversal.Visitor
doField
in class ClassTraversal.Empty
cg
- BCEL class generator objectfg
- BCEL field generator object to process
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |