|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.runtime.ClassTraversal.Empty
jist.runtime.RewriterTraversalVerifyAll
class RewriterTraversalVerifyAll
Traversal object that ensures that a given class obeys the specific coding norms of JIST applications. Specifically, JistAPI.THIS may not appear in a non-entity or static method.
JistAPI
,
JistAPI.Entity
,
JistAPI.THIS
Field Summary | |
---|---|
private org.apache.bcel.generic.ConstantPoolGen |
cpg
class constant pool. |
private java.util.Vector |
errors
accumulated verification errors. |
private Rewriter |
rewriter
primary rewriter. |
Constructor Summary | |
---|---|
RewriterTraversalVerifyAll(Rewriter rewriter)
Create rewriter object for general 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.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 errors. |
Methods inherited from class jist.runtime.ClassTraversal.Empty |
---|
doClassPost, doField, doInstruction, doMethodPost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector errors
private org.apache.bcel.generic.ConstantPoolGen cpg
private Rewriter rewriter
Constructor Detail |
---|
public RewriterTraversalVerifyAll(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.MethodGen doMethod(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.MethodGen mg)
doMethod
in interface ClassTraversal.Visitor
doMethod
in class ClassTraversal.Empty
cg
- BCEL class generator objectmg
- BCEL method generator object to process
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |