public class JavaAstVerifier extends JVisitor
The purpose fo this pass is to verify the consistency of the AST after a specific pass has run.
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Modifier and Type | Method and Description |
---|---|
static void |
assertCorrectOverriddenOrder(JProgram program,
JMethod method) |
static void |
assertCorrectOverridingOrder(JProgram program,
JMethod method) |
static void |
assertProgramIsConsistent(JProgram program)
Throws an assertion error if the AST for a program is not consistent.
|
void |
endVisit(JClassType x,
Context ctx) |
void |
endVisit(JField x,
Context ctx) |
void |
endVisit(JFieldRef x,
Context ctx)
NOTE: not called from JsniFieldRef.
|
void |
endVisit(JInterfaceType x,
Context ctx) |
void |
endVisit(JMethodCall x,
Context ctx)
NOTE: not called from JsniMethodRef.
|
void |
endVisit(JMethod x,
Context ctx) |
void |
endVisit(JsniFieldRef x,
Context ctx) |
void |
endVisit(JsniMethodRef x,
Context ctx) |
void |
endVisit(JThisRef x,
Context ctx) |
boolean |
visit(JMethod x,
Context ctx) |
accept, accept, accept, accept, accept, accept, acceptImmutable, acceptLvalue, acceptWithInsertRemove, acceptWithInsertRemoveImmutable, didChange, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, translateException, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public static void assertProgramIsConsistent(JProgram program)
public static void assertCorrectOverriddenOrder(JProgram program, JMethod method)
public static void assertCorrectOverridingOrder(JProgram program, JMethod method)
public void endVisit(JClassType x, Context ctx)
public void endVisit(JFieldRef x, Context ctx)
JVisitor
public void endVisit(JInterfaceType x, Context ctx)
public void endVisit(JMethodCall x, Context ctx)
JVisitor
public void endVisit(JsniFieldRef x, Context ctx)
public void endVisit(JsniMethodRef x, Context ctx)
Copyright © 2018. All rights reserved.