public class ImplicitUpcastAnalyzer extends JVisitor
Modifier and Type | Field and Description |
---|---|
protected JMethod |
currentMethod |
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Constructor and Description |
---|
ImplicitUpcastAnalyzer(JProgram program) |
Modifier and Type | Method and Description |
---|---|
void |
endVisit(JBinaryOperation x,
Context ctx) |
void |
endVisit(JConditional x,
Context ctx) |
void |
endVisit(JDeclarationStatement x,
Context ctx) |
void |
endVisit(JField x,
Context ctx) |
void |
endVisit(JMethodCall x,
Context ctx)
NOTE: not called from JsniMethodRef.
|
void |
endVisit(JMethod x,
Context ctx) |
void |
endVisit(JNewArray x,
Context ctx) |
void |
endVisit(JReturnStatement x,
Context ctx) |
void |
endVisit(JsniMethodRef x,
Context ctx) |
void |
endVisit(JThrowStatement x,
Context ctx) |
protected void |
processImplicitUpcast(JType fromType,
JType destType,
SourceInfo info)
An overriding method will be called for each detected implicit upcast.
|
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, visit
protected JMethod currentMethod
public ImplicitUpcastAnalyzer(JProgram program)
public void endVisit(JBinaryOperation x, Context ctx)
public void endVisit(JConditional x, Context ctx)
public void endVisit(JDeclarationStatement x, Context ctx)
public void endVisit(JMethodCall x, Context ctx)
JVisitor
public void endVisit(JReturnStatement x, Context ctx)
public void endVisit(JsniMethodRef x, Context ctx)
public void endVisit(JThrowStatement x, Context ctx)
protected void processImplicitUpcast(JType fromType, JType destType, SourceInfo info)
fromType
- destType
- Copyright © 2018. All rights reserved.