public class ExpressionAnalyzer extends JVisitor
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Constructor and Description |
---|
ExpressionAnalyzer() |
Modifier and Type | Method and Description |
---|---|
boolean |
accessesField()
Does this expression read or write fields within the scope of the
expression?
|
boolean |
accessesFieldNonFinal()
Does this expression read or write non-final fields within the scope of the
expression?
|
boolean |
accessesLocal()
Does this expression read or write locals within the scope of the
expression?
|
boolean |
accessesParameter()
Does this expression read or write parameters within the scope of the
expression?
|
boolean |
canThrowException() |
boolean |
createsObject() |
void |
endVisit(JArrayLength x,
Context ctx) |
void |
endVisit(JArrayRef x,
Context ctx) |
void |
endVisit(JBinaryOperation x,
Context ctx) |
void |
endVisit(JCastOperation x,
Context ctx) |
void |
endVisit(JFieldRef x,
Context ctx)
NOTE: not called from JsniFieldRef.
|
void |
endVisit(JLocalRef x,
Context ctx) |
void |
endVisit(JMethodCall x,
Context ctx)
NOTE: not called from JsniMethodRef.
|
void |
endVisit(JNewArray x,
Context ctx) |
void |
endVisit(JNewInstance x,
Context ctx) |
void |
endVisit(JParameterRef x,
Context ctx) |
void |
endVisit(JPostfixOperation x,
Context ctx) |
void |
endVisit(JPrefixOperation x,
Context ctx) |
boolean |
hasAssignment()
Does this expression make assignments to variables within the scope of the
expression?
|
boolean |
hasAssignmentToField()
Does this expression make assignments to fields within the scope of the
expression?
|
boolean |
hasAssignmentToLocal()
Does this expression make assignments to locals within the scope of the
expression?
|
boolean |
hasAssignmentToParameter()
Does this expression make assignments to parameters within the scope of the
expression?
|
protected boolean |
isInConditional()
Determined if the current expression conditionally executes, based on its
parent expressions.
|
boolean |
visit(JBinaryOperation x,
Context ctx) |
boolean |
visit(JConditional 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, 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
public boolean accessesField()
public boolean accessesFieldNonFinal()
public boolean accessesLocal()
public boolean accessesParameter()
public boolean canThrowException()
public boolean createsObject()
public void endVisit(JArrayLength x, Context ctx)
public void endVisit(JBinaryOperation x, Context ctx)
public void endVisit(JCastOperation x, Context ctx)
public void endVisit(JFieldRef x, Context ctx)
JVisitor
public void endVisit(JMethodCall x, Context ctx)
JVisitor
public void endVisit(JNewInstance x, Context ctx)
public void endVisit(JParameterRef x, Context ctx)
public void endVisit(JPostfixOperation x, Context ctx)
public void endVisit(JPrefixOperation x, Context ctx)
public boolean hasAssignment()
public boolean hasAssignmentToField()
public boolean hasAssignmentToLocal()
public boolean hasAssignmentToParameter()
public boolean visit(JBinaryOperation x, Context ctx)
public boolean visit(JConditional x, Context ctx)
protected boolean isInConditional()
Copyright © 2018. All rights reserved.