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 Subsequence | getSubsequenceFromReceiver(JavaExpression expr,
                          BaseAnnotatedTypeFactoryForIndexChecker factory)Returns a Subsequence representing the  HasSubsequenceannotation on the declaration ofrecor null if there is not such annotation. | 
| static Subsequence | getSubsequenceFromTree(Tree varTree,
                      BaseAnnotatedTypeFactoryForIndexChecker factory)Returns a Subsequence representing the  HasSubsequenceannotation on the declaration ofvarTreeor null if there is not such annotation. | 
| static String | negateString(String s)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, BaseAnnotatedTypeFactoryForIndexChecker 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(JavaExpression expr, BaseAnnotatedTypeFactoryForIndexChecker factory)
HasSubsequence annotation on the declaration of
 rec or null if there is not such annotation.expr - some treefactory - an AnnotatedTypeFactoryvarTreepublic static String negateString(String s)
s - a Java expression string