public class ExpressionInfo extends Object
This class is not intended to be extended by clients.
Constructor and Description |
---|
ExpressionInfo() |
Modifier and Type | Method and Description |
---|---|
void |
addAccessedPropertyName(String name)
Marks the given property (the fully qualified name of a
PropertyTester property) as accessed. |
void |
addMisBehavingExpressionType(Class<?> clazz)
Adds the given class to the list of misbehaving classes.
|
void |
addVariableNameAccess(String name)
Marks the given variable as accessed.
|
String[] |
getAccessedPropertyNames()
Returns the set of accessed
PropertyTester properties. |
String[] |
getAccessedVariableNames()
Returns the set of accessed variables.
|
Class<?>[] |
getMisbehavingExpressionTypes()
Returns the set of expression types which don't reimplement the
new
Expression.collectExpressionInfo(ExpressionInfo)
method. |
boolean |
hasDefaultVariableAccess()
Returns
true if the default variable is accessed
by the expression tree. |
boolean |
hasSystemPropertyAccess()
Returns
true if the system property is accessed
by the expression tree. |
void |
markDefaultVariableAccessed()
Marks the default variable as accessed.
|
void |
markSystemPropertyAccessed()
Marks the system property as accessed.
|
void |
merge(ExpressionInfo other)
Merges this reevaluation information with the given info.
|
void |
mergeExceptDefaultVariable(ExpressionInfo other)
Merges this reevaluation information with the given info
ignoring the default variable access.
|
public boolean hasDefaultVariableAccess()
true
if the default variable is accessed
by the expression tree.public void markDefaultVariableAccessed()
public boolean hasSystemPropertyAccess()
true
if the system property is accessed
by the expression tree.public void markSystemPropertyAccessed()
public String[] getAccessedVariableNames()
public void addVariableNameAccess(String name)
name
- the accessed variablepublic String[] getAccessedPropertyNames()
PropertyTester
properties.for system properties
public void addAccessedPropertyName(String name)
PropertyTester
property) as accessed.name
- the fully qualified property namefor system properties
public Class<?>[] getMisbehavingExpressionTypes()
Expression.collectExpressionInfo(ExpressionInfo)
method. If one expression in the expression tree didn't implement the
method, then no optimizations can be done. Returns null
if
all expressions implement the method.computeReevaluationInfo
method, or null
if all dopublic void addMisBehavingExpressionType(Class<?> clazz)
clazz
- the class to add.public void merge(ExpressionInfo other)
other
- the information to merge withpublic void mergeExceptDefaultVariable(ExpressionInfo other)
other
- the information to merge with
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.