public static class FlowExpressionParseUtil.FlowExpressionContext extends Object
@A(E), the context is the program element that is annotated by @A(E).| Modifier and Type | Field and Description | 
|---|---|
| List<FlowExpressions.Receiver> | argumentsIn a context for a method declaration or lambda, the formals. | 
| BaseContext | checkerContext | 
| FlowExpressions.Receiver | outerReceiver | 
| boolean | parsingMemberWhether or not the FlowExpressionParser is parsing the "member" part of a member select. | 
| FlowExpressions.Receiver | receiver | 
| boolean | useLocalScopeWhether the TreePath should be used to find identifiers. | 
| Constructor and Description | 
|---|
| FlowExpressionContext(FlowExpressions.Receiver receiver,
                     List<FlowExpressions.Receiver> arguments,
                     BaseContext checkerContext)Creates context for parsing a flow expression. | 
| Modifier and Type | Method and Description | 
|---|---|
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForClassDeclaration(ClassTree classTree,
                               BaseContext checkerContext)Returns a  FlowExpressionParseUtil.FlowExpressionContextfor the classclassTreeas seen at the
 class declaration. | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForLambda(LambdaExpressionTree lambdaTree,
                     TreePath path,
                     BaseContext checkerContext) | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForMethodDeclaration(MethodTree methodDeclaration,
                                Tree enclosingTree,
                                BaseContext checkerContext)Creates a  FlowExpressionParseUtil.FlowExpressionContextfor the method declared inmethodDeclaration. | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForMethodDeclaration(MethodTree methodDeclaration,
                                TreePath currentPath,
                                BaseContext checkerContext)Creates a  FlowExpressionParseUtil.FlowExpressionContextfor the method declared inmethodDeclaration. | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForMethodDeclaration(MethodTree methodDeclaration,
                                TypeMirror enclosingType,
                                BaseContext checkerContext)Creates a  FlowExpressionParseUtil.FlowExpressionContextfor the method declared inmethodDeclaration. | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForMethodUse(MethodInvocationNode methodInvocation,
                        BaseContext checkerContext)Returns a  FlowExpressionParseUtil.FlowExpressionContextfor the methodmethodInvocation(represented as aNodeas seen at the method use (i.e., at a method call site). | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForMethodUse(MethodInvocationTree methodInvocation,
                        BaseContext checkerContext)Returns a  FlowExpressionParseUtil.FlowExpressionContextfor the methodmethodInvocation(represented as aMethodInvocationTreeas seen at the method use (i.e., at a
 method call site). | 
| static FlowExpressionParseUtil.FlowExpressionContext | buildContextForNewClassUse(ObjectCreationNode n,
                          BaseContext checkerContext)Returns a  FlowExpressionParseUtil.FlowExpressionContextfor the constructorn(represented as aNodeas seen at the method use (i.e., at a method call site). | 
| FlowExpressionParseUtil.FlowExpressionContext | copyAndSetUseLocalScope(boolean useLocalScope)Returns a copy of the context that differs in that useLocalScope is set to the given
 value. | 
| FlowExpressionParseUtil.FlowExpressionContext | copyAndUseOuterReceiver()Returns a copy of the context that differs in that it uses the outer receiver as main
 receiver (and also retains it as the outer receiver), and parsingMember is set to false. | 
| FlowExpressionParseUtil.FlowExpressionContext | copyChangeToParsingMemberOfReceiver(FlowExpressions.Receiver receiver)Returns a copy of the context that differs in that it has a different receiver and
 parsingMember is set to true. | 
| String | debugToString()Format this object verbosely, with each line indented by 4 spaces but without a trailing
 newline. | 
| String | debugToString(int indent)Format this object verbosely, with each line indented by the given number of spaces but
 without a trailing newline. | 
public final FlowExpressions.Receiver receiver
public final List<FlowExpressions.Receiver> arguments
public final FlowExpressions.Receiver outerReceiver
public final BaseContext checkerContext
public final boolean parsingMember
public final boolean useLocalScope
public FlowExpressionContext(FlowExpressions.Receiver receiver, List<FlowExpressions.Receiver> arguments, BaseContext checkerContext)
receiver - used to replace "this" in a flow expression and used to resolve
     identifiers in the flow expression with an implicit "this"arguments - used to replace parameter references, e.g. #1, in flow expressions, null
     if no argumentscheckerContext - used to create FlowExpressions.Receiverspublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForMethodDeclaration(MethodTree methodDeclaration, Tree enclosingTree, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the method declared in methodDeclaration.methodDeclaration - used translate parameter numbers in a flow expression to formal
     parameters of the methodenclosingTree - used to look up fields and as type of "this" in flow expressionscheckerContext - use to build FlowExpressions.ReceivermethodDeclarationpublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForMethodDeclaration(MethodTree methodDeclaration, TypeMirror enclosingType, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the method declared in methodDeclaration.methodDeclaration - used translate parameter numbers in a flow expression to formal
     parameters of the methodenclosingType - used to look up fields and as type of "this" in flow expressionscheckerContext - use to build FlowExpressions.ReceivermethodDeclarationpublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForLambda(LambdaExpressionTree lambdaTree, TreePath path, BaseContext checkerContext)
public static FlowExpressionParseUtil.FlowExpressionContext buildContextForMethodDeclaration(MethodTree methodDeclaration, TreePath currentPath, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the method declared in methodDeclaration.methodDeclaration - used translate parameter numbers in a flow expression to formal
     parameters of the methodcurrentPath - to find the enclosing class, which is used to look up fields and as
     type of "this" in flow expressionscheckerContext - use to build FlowExpressions.ReceivermethodDeclarationpublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForClassDeclaration(ClassTree classTree, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the class classTree as seen at the
 class declaration.FlowExpressionParseUtil.FlowExpressionContext for the class classTree as seen at the
     class declarationpublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForMethodUse(MethodInvocationNode methodInvocation, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the method methodInvocation
 (represented as a Node as seen at the method use (i.e., at a method call site).FlowExpressionParseUtil.FlowExpressionContext for the method methodInvocationpublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForMethodUse(MethodInvocationTree methodInvocation, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the method methodInvocation
 (represented as a MethodInvocationTree as seen at the method use (i.e., at a
 method call site).FlowExpressionParseUtil.FlowExpressionContext for the method methodInvocationpublic static FlowExpressionParseUtil.FlowExpressionContext buildContextForNewClassUse(ObjectCreationNode n, BaseContext checkerContext)
FlowExpressionParseUtil.FlowExpressionContext for the constructor n (represented as a
 Node as seen at the method use (i.e., at a method call site).FlowExpressionParseUtil.FlowExpressionContext for the constructor n (represented as a
     Node as seen at the method use (i.e., at a method call site)public FlowExpressionParseUtil.FlowExpressionContext copyChangeToParsingMemberOfReceiver(FlowExpressions.Receiver receiver)
public FlowExpressionParseUtil.FlowExpressionContext copyAndUseOuterReceiver()
public FlowExpressionParseUtil.FlowExpressionContext copyAndSetUseLocalScope(boolean useLocalScope)
public String debugToString()
public String debugToString(int indent)