public class Subsequence extends Object
HasSubsequence
annotations.Modifier and Type | Field and Description |
---|---|
String |
array
Name of the Subsequence.
|
String |
from
First index of the subsequence in the backing sequence.
|
String |
to
Last 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
HasSubsequence annotation on the declaration of
rec or null if there is not such annotation. |
static Subsequence |
getSubsequenceFromTree(Tree varTree,
BaseAnnotatedTypeFactoryForIndexChecker factory)
Returns a Subsequence representing the
HasSubsequence annotation on the declaration of
varTree or 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 AnnotatedTypeFactoryvarTree
public 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 AnnotatedTypeFactoryvarTree
public static String negateString(String s)
s
- a Java expression string