public class Subsequence extends Object
HasSubsequence annotations.| Modifier and Type | Field and Description | 
|---|---|
| String | arrayName of the Subsequence. | 
| String | fromFirst index of the subsequence in the backing sequence. | 
| String | toLast index of the subsequence in the backing sequence. | 
| Modifier and Type | Method and Description | 
|---|---|
| static FlowExpressionParseUtil.FlowExpressionContext | getContextFromReceiver(FlowExpressions.Receiver rec,
                      BaseContext checker)If the passed receiver is a FieldAccess, returns the context associated with it. | 
| static Subsequence | getSubsequenceFromReceiver(FlowExpressions.Receiver rec,
                          AnnotatedTypeFactory factory,
                          TreePath currentPath,
                          FlowExpressionParseUtil.FlowExpressionContext context)Returns a Subsequence representing the  HasSubsequenceannotation on the declaration
 ofrecor null if there is not such annotation. | 
| static Subsequence | getSubsequenceFromTree(Tree varTree,
                      AnnotatedTypeFactory factory)Returns a Subsequence representing the  HasSubsequenceannotation on the declaration
 ofvarTreeor null if there is not such annotation. | 
| static String | negateString(String s,
            TreePath currentPath,
            FlowExpressionParseUtil.FlowExpressionContext context)Returns the additive inverse of the given String. | 
| String | toString() | 
public final String array
public final String from
public final String to
public static Subsequence getSubsequenceFromTree(Tree varTree, AnnotatedTypeFactory factory)
HasSubsequence annotation on the declaration
 of varTree or null if there is not such annotation.
 Note that this method does not standardize or viewpoint adapt the arguments to the annotation, unlike getSubsequenceFromReceiver.
varTree - some treefactory - an AnnotatedTypeFactoryvarTreepublic static Subsequence getSubsequenceFromReceiver(FlowExpressions.Receiver rec, AnnotatedTypeFactory factory, TreePath currentPath, FlowExpressionParseUtil.FlowExpressionContext context)
HasSubsequence annotation on the declaration
 of rec or null if there is not such annotation.rec - some treefactory - an AnnotatedTypeFactorycurrentPath - the path at which to viewpoint adapt the subsequencecontext - the context in which to viewpoint adapt the subsequencevarTreepublic static FlowExpressionParseUtil.FlowExpressionContext getContextFromReceiver(FlowExpressions.Receiver rec, BaseContext checker)
Used to standardize and viewpoint adapt arguments to HasSubsequence annotations.
public static String negateString(String s, TreePath currentPath, FlowExpressionParseUtil.FlowExpressionContext context)
The passed String is standardized and viewpoint adapted before this transformation is applied.