Class ViewpointAdaptJavaExpression
java.lang.Object
org.checkerframework.dataflow.expression.JavaExpressionVisitor<JavaExpression,Void>
 
org.checkerframework.dataflow.expression.JavaExpressionConverter
org.checkerframework.dataflow.expression.ViewpointAdaptJavaExpression
This class has methods to viewpoint-adapt 
JavaExpression by replacing ThisReference and FormalParameter expressions with the given JavaExpressions.- 
Method SummaryModifier and TypeMethodDescriptionstatic JavaExpressionviewpointAdapt(JavaExpression javaExpr, @Nullable List<JavaExpression> args) static JavaExpressionviewpointAdapt(JavaExpression javaExpr, @Nullable JavaExpression thisReference) static JavaExpressionviewpointAdapt(JavaExpression javaExpr, @Nullable JavaExpression thisReference, @Nullable List<JavaExpression> args) protected JavaExpressionvisitFormalParameter(FormalParameter parameterExpr, Void unused) Visit aFormalParameter.protected JavaExpressionvisitThisReference(ThisReference thisExpr, Void unused) Visit aThisReference.Methods inherited from class org.checkerframework.dataflow.expression.JavaExpressionConverterconvert, convert, visitArrayAccess, visitArrayCreation, visitBinaryOperation, visitClassName, visitFieldAccess, visitLocalVariable, visitMethodCall, visitSuperReference, visitUnaryOperation, visitUnknown, visitValueLiteralMethods inherited from class org.checkerframework.dataflow.expression.JavaExpressionVisitorvisit
- 
Method Details- 
viewpointAdaptpublic static JavaExpression viewpointAdapt(JavaExpression javaExpr, @Nullable List<JavaExpression> args) - Parameters:
- javaExpr- the expression to viewpoint-adapt
- args- the expressions that replace- FormalParameters; if null,- FormalParameters are not replaced
- Returns:
- the viewpoint-adapted expression
 
- 
viewpointAdaptpublic static JavaExpression viewpointAdapt(JavaExpression javaExpr, @Nullable JavaExpression thisReference) - Parameters:
- javaExpr- the expression to viewpoint-adapt
- thisReference- the expression that replaces occurrences of- ThisReference; if null,- ThisReferences are not replaced
- Returns:
- the viewpoint-adapted expression
 
- 
viewpointAdaptpublic static JavaExpression viewpointAdapt(JavaExpression javaExpr, @Nullable JavaExpression thisReference, @Nullable List<JavaExpression> args) - Parameters:
- javaExpr- the expression to viewpoint-adapt
- thisReference- the expression that replaces occurrences of- ThisReference; if null,- ThisReferences are not replaced
- args- the expressions that replaces- FormalParameters; if null,- FormalParameters are not replaced
- Returns:
- the viewpoint-adapted expression
 
- 
visitThisReferenceDescription copied from class:JavaExpressionVisitorVisit aThisReference.- Overrides:
- visitThisReferencein class- JavaExpressionConverter
- Parameters:
- thisExpr- the JavaExpression to visit
- unused- the parameter to pass to the visit method
- Returns:
- the result of visiting the thisExpr
 
- 
visitFormalParameterDescription copied from class:JavaExpressionVisitorVisit aFormalParameter.- Overrides:
- visitFormalParameterin class- JavaExpressionConverter
- Parameters:
- parameterExpr- the JavaExpression to visit
- unused- the parameter to pass to the visit method
- Returns:
- the result of visiting the parameterExpr
 
 
-