- AbstractTypeProcessor - Class in org.checkerframework.javacutil
-
This class is an abstract annotation processor designed to be a convenient superclass for
concrete "type processors", processors that require the type information in the processed source.
- AbstractTypeProcessor() - Constructor for class org.checkerframework.javacutil.AbstractTypeProcessor
-
Constructor for subclasses to call.
- AnnotationBuilder - Class in org.checkerframework.javacutil
-
Builds an annotation mirror that may have some values.
- AnnotationBuilder(ProcessingEnvironment, Class<? extends Annotation>) - Constructor for class org.checkerframework.javacutil.AnnotationBuilder
-
Create a new AnnotationBuilder for the given annotation and environment (with no
elements/fields, but they can be added later).
- AnnotationBuilder(ProcessingEnvironment, CharSequence) - Constructor for class org.checkerframework.javacutil.AnnotationBuilder
-
Create a new AnnotationBuilder for the given annotation name (with no elements/fields, but
they can be added later).
- AnnotationBuilder(ProcessingEnvironment, AnnotationMirror) - Constructor for class org.checkerframework.javacutil.AnnotationBuilder
-
Create a new AnnotationBuilder that copies the given annotation, including its
elements/fields.
- annotationFromAnnotationTree(AnnotationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- annotationName(AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
- annotationOrdering() - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
- AnnotationProvider - Interface in org.checkerframework.javacutil
-
An implementation of AnnotationProvider returns annotations on Java AST elements.
- annotationsFromArrayCreation(NewArrayTree, int) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- annotationsFromTree(AnnotatedTypeTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- annotationsFromTree(TypeParameterTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- annotationsFromTypeAnnotationTrees(List<? extends AnnotationTree>) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- AnnotationUtils - Class in org.checkerframework.javacutil
-
A utility class for working with annotations.
- areSame(AnnotationMirror, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns true iff both annotations are of the same type and have the same annotation values.
- areSame(Collection<? extends AnnotationMirror>, Collection<? extends AnnotationMirror>) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that two collections contain the same annotations.
- areSameByClass(AnnotationMirror, Class<? extends Annotation>) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that the annotation am has the name of annoClass.
- areSameByName(AnnotationMirror, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Return true iff a1 and a2 have the same annotation type.
- areSameByName(AnnotationMirror, String) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that the annotation am has the name aname (a fully-qualified type
name).
- areSameDeclaredTypes(Type.ClassType, Type.ClassType) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the arguments are both the same primitive types.
- areSamePrimitiveTypes(TypeMirror, TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the arguments are both the same primitive types.
- asSuper(TypeMirror, TypeMirror, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypesUtils
-
- attributeFromAnnotationValue(ExecutableElement, AnnotationValue, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
Returns a newly created Attribute corresponding to an argument AnnotationValue.
- BasicAnnotationProvider - Class in org.checkerframework.javacutil
-
An AnnotationProvider that is independent of any type hierarchy.
- BasicAnnotationProvider() - Constructor for class org.checkerframework.javacutil.BasicAnnotationProvider
-
- BasicTypeProcessor - Class in org.checkerframework.javacutil
-
Process the types in an AST in a trivial manner, with hooks for derived classes to actually do
something.
- BasicTypeProcessor() - Constructor for class org.checkerframework.javacutil.BasicTypeProcessor
-
- BugInCF - Exception in org.checkerframework.javacutil
-
Exception type indicating a bug in the framework or in a checker implementation.
- BugInCF(String) - Constructor for exception org.checkerframework.javacutil.BugInCF
-
Constructs a new CheckerError with the specified detail message and no cause (use this at the
root cause).
- BugInCF(String, Object...) - Constructor for exception org.checkerframework.javacutil.BugInCF
-
Constructs a new CheckerError with a detail message composed from the given arguments, and
with no cause (use this at the root cause).
- BugInCF(String, Throwable) - Constructor for exception org.checkerframework.javacutil.BugInCF
-
Constructs a new CheckerError with the specified detail message and cause.
- build() - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- buildArrayAccess(ExpressionTree, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to dereference an array.
- buildArrayLengthAccess(ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to dereference the length field of an array.
- buildAssignment(VariableTree, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to assign an expression to a variable.
- buildAssignment(ExpressionTree, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to assign an RHS expression to an LHS expression.
- buildBinary(TypeMirror, Tree.Kind, ExpressionTree, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to perform a binary operation.
- buildClassUse(Element) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to refer to a class name.
- buildHasNextMethodAccess(ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to access the hasNext() method of an iterator.
- buildIteratorMethodAccess(ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to access the iterator() method of some iterable expression.
- buildLessThan(ExpressionTree, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to compare two operands with less than.
- buildLiteral(Object) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree representing a literal value of primitive or String type.
- buildMethodContext() - Method in class org.checkerframework.javacutil.Resolver
-
Build an instance of Resolve$MethodResolutionContext.
- buildMethodInvocation(ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to call a method designated by the argument expression.
- buildMethodInvocation(ExpressionTree, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to call a method designated by methodExpr, with one argument designated by
argExpr.
- buildNewArray(TypeMirror, List<ExpressionTree>) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to create a new array with initializers.
- buildNextMethodAccess(ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to access the next() method of an iterator.
- buildPrimValueMethodAccess(Tree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to access the *Value() method of a boxed type such as Short or Float,
where * is the corresponding primitive type (i.e.
- buildTypeCast(TypeMirror, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to cast the type of an expression.
- buildValueOfMethodAccess(Tree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to access the valueOf() method of boxed type such as Short or Float.
- buildVariableDecl(TypeMirror, String, Element, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to declare and initialize a variable, with no modifiers.
- buildVariableDecl(Tree, String, Element, ExpressionTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to declare and initialize a variable.
- buildVariableUse(VariableTree) - Method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Builds an AST Tree to refer to a variable.
- canHaveTypeAnnotation(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- CHECKER_QUAL_PATH_OPT - Static variable in class org.checkerframework.javacutil.PluginUtil
-
Option name for specifying an alternative checker-qual.jar location.
- classExtendsTAPosition(int, int) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
- classTreeKinds() - Static method in class org.checkerframework.javacutil.TreeUtils
-
- clear() - Static method in class org.checkerframework.javacutil.AnnotationBuilder
-
- clear() - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
- CollectionUtils - Class in org.checkerframework.javacutil
-
Utility methods related to Java Collections.
- CollectionUtils() - Constructor for class org.checkerframework.javacutil.CollectionUtils
-
- compareDiagnosticPosition(Tree, Tree) - Static method in class org.checkerframework.javacutil.InternalUtils
-
Compares tree1 to tree2 by the position at which a diagnostic (e.g., an error message) for
the tree should be printed.
- constructor(NewClassTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determines the symbol for a constructor given an invocation via new.
- containsSame(Collection<? extends AnnotationMirror>, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that the collection contains the annotation.
- containsSameByClass(Collection<? extends AnnotationMirror>, Class<? extends Annotation>) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that the collection contains the annotation.
- containsSameByName(Collection<? extends AnnotationMirror>, String) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that the collection contains an annotation of the given name.
- containsSameByName(Collection<? extends AnnotationMirror>, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Checks that the collection contains an annotation of the given name.
- containsThisConstructorInvocation(MethodTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- copyElementValuesFromAnnotation(AnnotationMirror, String...) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Copies every element value from the given annotation.
- copyRenameElementValuesFromAnnotation(AnnotationMirror, Map<String, String>) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Copies the specified element values from the given annotation, using the specified renaming
map.
- copyTAPosition(TypeAnnotationPosition) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
- createAnnotationMap() - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
- createAnnotationSet() - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
- createArrayType(TypeMirror, Types) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns an
ArrayType with elements of type
componentType.
- createCompoundFromAnnotationMirror(AnnotationMirror, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
Returns a newly created Attribute.Compound corresponding to an argument AnnotationMirror.
- createLRUCache(int) - Static method in class org.checkerframework.javacutil.CollectionUtils
-
A Utility method for creating LRU cache.
- createTreePathScanner(CompilationUnitTree) - Method in class org.checkerframework.javacutil.BasicTypeProcessor
-
Create a TreePathScanner at the given root.
- createTypeCompoundFromAnnotationMirror(AnnotationMirror, TypeAnnotationPosition, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
Returns a newly created Attribute.TypeCompound corresponding to an argument AnnotationMirror.
- currentRoot - Variable in class org.checkerframework.javacutil.BasicTypeProcessor
-
The source tree that's being scanned.
- elementFromDeclaration(ClassTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the element for a class corresponding to a declaration.
- elementFromDeclaration(MethodTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the element for a method corresponding to a declaration.
- elementFromDeclaration(VariableTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the element for a variable corresponding to its declaration.
- elementFromTree(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the
Element for the given Tree API node.
- elementFromUse(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the element for the declaration corresponding to this use of an element.
- elementFromUse(MethodInvocationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- elementFromUse(NewClassTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Specialization for return type.
- elements - Variable in class org.checkerframework.javacutil.trees.TreeBuilder
-
- ElementUtils - Class in org.checkerframework.javacutil
-
A Utility class for analyzing Elements.
- enclosingClass(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns the innermost type element enclosing the given element.
- enclosingClass(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the enclosing class of the tree node defined by the given
TreePath.
- enclosingMethod(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the enclosing method of the tree node defined by the given
TreePath.
- enclosingMethodOrLambda(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the enclosing method or lambda expression of the tree node defined by the given
TreePath.
- enclosingNonParen(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the first enclosing tree in path, that is not a parenthesis.
- enclosingOfClass(TreePath, Class<T>) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the first enclosing tree in path, of the specified class.
- enclosingOfKind(TreePath, Tree.Kind) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the first enclosing tree in path, of the specified kind.
- enclosingOfKind(TreePath, Set<Tree.Kind>) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the first enclosing tree in path, with any one of the specified kinds.
- enclosingPackage(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns the innermost package element enclosing the given element.
- enclosingTopLevelBlock(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- enclosingVariable(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Gets the enclosing variable of a tree node defined by the given
TreePath.
- env - Variable in class org.checkerframework.javacutil.trees.TreeBuilder
-
- equals(Object) - Method in class org.checkerframework.javacutil.Pair
-
- escapeQuotesAndSlashes(String) - Static method in class org.checkerframework.javacutil.PluginUtil
-
- getAllFieldsIn(TypeElement, Elements) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Return all fields declared in the given type or any superclass/interface.
- getAllMethodsIn(TypeElement, Elements) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Return all methods declared in the given type or any superclass/interface.
- getAllTypeElementsIn(TypeElement) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Return all nested/inner classes/interfaces declared in the given type.
- getAnnotationByClass(Collection<? extends AnnotationMirror>, Class<? extends Annotation>) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the AnnotationMirror in c that has the same class as anno.
- getAnnotationByName(Collection<? extends AnnotationMirror>, String) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the AnnotationMirror in c that has the same name as anno.
- getAnnotationMirror(Tree, Class<? extends Annotation>) - Method in interface org.checkerframework.javacutil.AnnotationProvider
-
Return the annotation on tree that is in the hierarchy that contains the qualifier
target.
- getAnnotationMirror(Tree, Class<? extends Annotation>) - Method in class org.checkerframework.javacutil.BasicAnnotationProvider
-
Return the annotation on tree that is in the hierarchy that contains the qualifier
target.
- getAssignmentContext(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns the tree with the assignment context for the treePath leaf node.
- getBooleanProp(Map<PluginUtil.CheckerProp, Object>, PluginUtil.CheckerProp, String) - Static method in class org.checkerframework.javacutil.PluginUtil
-
If prop is in props, return a 1-element list containing cmdLineArg.
- getBooleanSystemProperty(String) - Static method in class org.checkerframework.javacutil.PluginUtil
-
Return true if the system property is set to "true".
- getBooleanSystemProperty(String, boolean) - Static method in class org.checkerframework.javacutil.PluginUtil
-
Return its boolean value if the system property is set.
- getCapturedWildcard(TypeVariable) - Static method in class org.checkerframework.javacutil.TypesUtils
-
If typeVar is a captured wildcard, returns that wildcard; otherwise returns null.
- getClassLoaderForClass(Class<? extends Object>) - Static method in class org.checkerframework.javacutil.InternalUtils
-
Obtain the class loader for clazz.
- getCmd(String, File, File, File, String, String, String, File, String, Map<PluginUtil.CheckerProp, Object>, PrintStream, boolean, String) - Static method in class org.checkerframework.javacutil.PluginUtil
-
- getCmdArgsOnly(File, String, String, String, File, String, Map<PluginUtil.CheckerProp, Object>, PrintStream, boolean, String) - Static method in class org.checkerframework.javacutil.PluginUtil
-
- getCmdArgsOnly(File, File, File, String, String, String, File, String, Map<PluginUtil.CheckerProp, Object>, PrintStream, boolean, String) - Static method in class org.checkerframework.javacutil.PluginUtil
-
- getCmdLine(Map<PluginUtil.CheckerProp, Object>) - Method in enum org.checkerframework.javacutil.PluginUtil.CheckerProp
-
- getDeclAnnotation(Element, Class<? extends Annotation>) - Method in interface org.checkerframework.javacutil.AnnotationProvider
-
Returns the AnnotationMirror, of the given class or an alias of it, used to annotate the
element.
- getDeclAnnotation(Element, Class<? extends Annotation>) - Method in class org.checkerframework.javacutil.BasicAnnotationProvider
-
Returns the AnnotationMirror, of the given class, used to annotate the element.
- getDeclaration() - Method in class org.checkerframework.javacutil.trees.DetachedVarSymbol
-
Get the declaration tree for the variable.
- getElementKindsForElementType(ElementType) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the set of
ElementKinds corresponding to
elementType.
- getElementKindsForTarget(Target) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
- getElementValue(AnnotationMirror, CharSequence, Class<T>, boolean) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Get the element with the name elementName of the annotation anno.
- getElementValueArray(AnnotationMirror, CharSequence, Class<T>, boolean) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Get the element with the name elementName of the annotation anno, where the
element has an array type.
- getElementValueClassName(AnnotationMirror, CharSequence, boolean) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Get the Name of the class that is referenced by element elementName.
- getElementValueClassNames(AnnotationMirror, CharSequence, boolean) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Get the list of Names of the classes that are referenced by element elementName.
- getElementValueEnum(AnnotationMirror, CharSequence, Class<T>, boolean) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Get the element with the name name of the annotation anno.
- getElementValueEnumArray(AnnotationMirror, CharSequence, Class<T>, boolean) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Get the element with the name elementName of the annotation anno, or the
default value if no element is present explicitly, where the element has an array type and
the elements are Enums.
- getElementValuesWithDefaults(AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the values of an annotation's elements, including defaults.
- getEnvForPath(TreePath) - Method in class org.checkerframework.javacutil.Resolver
-
Determine the environment for the given path.
- getExplicitAnnotationsOnConstructorResult(MethodTree) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the annotations explicitly written on a constructor result.
- getField(String, String, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns the VariableElement for a field declaration.
- getFieldName(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Compute the name of the field that the field access tree accesses.
- getJavacContext(ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.InternalUtils
-
Helper function to extract the javac Context from the javac processing environment.
- getJavaCommand(String, PrintStream) - Static method in class org.checkerframework.javacutil.PluginUtil
-
- getJdkJarName() - Static method in class org.checkerframework.javacutil.PluginUtil
-
Determine the version of the JRE that we are currently running and select a jdkX.jar where X
is the version of Java that is being run (e.g.
- getJdkJarPrefix() - Static method in class org.checkerframework.javacutil.PluginUtil
-
Determine the version of the JRE that we are currently running and select a jdkX where X is
the version of Java that is being run (e.g.
- getJreVersion() - Static method in class org.checkerframework.javacutil.PluginUtil
-
Extract the first two version numbers from java.version (e.g.
- getMethod(String, String, int, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns the ExecutableElement for the method declaration of methodName, in class typeName,
with params formal parameters.
- getMethod(String, String, ProcessingEnvironment, String...) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns the ExecutableElement for a method declaration of methodName, in class typeName, with
formal parameters of the given types.
- getMethodName(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Compute the name of the method that the method access tree accesses.
- getMethods(String, String, int, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns all ExecutableElements for method declarations of methodName, in class typeName, with
params formal parameters.
- getQualifiedClassName(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns the qualified name of the inner most class enclosing the provided Element
- getQualifiedName(DeclaredType) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Gets the fully qualified name for a provided type.
- getReceiverTree(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns the receiver tree of a field access or a method invocation.
- getSame(Collection<? extends AnnotationMirror>, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the AnnotationMirror in c that is the same annotation as anno.
- getSameByName(Collection<? extends AnnotationMirror>, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns the AnnotationMirror in c that is the same annotation as anno
ignoring values.
- getSimpleName(ExecutableElement) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns the canonical representation of the method declaration, which contains simple names
of the types only.
- getStringProp(Map<PluginUtil.CheckerProp, Object>, PluginUtil.CheckerProp, String, String...) - Static method in class org.checkerframework.javacutil.PluginUtil
-
Returns a list of command-line arguments: one that sets the given property, plus everything
in extras.
- getSuperTypes(TypeElement, Elements) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Determine all type elements for the classes and interfaces referenced (directly or
indirectly) in the extends/implements clauses of the given type element.
- getType(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns the TypeMirror for usage of Element as a value.
- getTypeElement(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns the type element for type if type is a class, interface, annotation
type, or enum.
- getValueOfMethod(ProcessingEnvironment, TypeMirror) - Static method in class org.checkerframework.javacutil.trees.TreeBuilder
-
Returns the valueOf method of a boxed type such as Short or Float.
- getVerboseName(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns a verbose name that identifies the element.
- greatestLowerBound(TypeMirror, TypeMirror, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns the greatest lower bound of two
TypeMirrors, ignoring any annotations on the
types.
- init(ProcessingEnvironment) - Method in class org.checkerframework.javacutil.AbstractTypeProcessor
- InternalUtils - Class in org.checkerframework.javacutil
-
Miscellaneous static utility methods.
- isAnonymous(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the argument is an anonymous type.
- isAnonymousConstructor(MethodTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determines whether or not the node referred to by the given
TreePath is an anonymous
constructor (the constructor for an anonymous class.
- isArrayLengthAccess(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns whether or not tree is an access of array length.
- isBooleanType(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Checks if the type represents a boolean type, that is either boolean (primitive type) or
java.lang.Boolean.
- isBoxedPrimitive(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
- isBoxOf(TypeMirror, TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true if declaredType is a Class that is used to box primitive type (e.g.
- isCaptured(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns whether a TypeVariable represents a captured type.
- isClass(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Checks if the type represents a java.lang.Class declared type.
- isClassLiteral(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether tree is a class literal, such as.
- isClassTree(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Is the given tree kind a class, i.e.
- isClassType(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns whether a TypeMirror represents a class type.
- isCompileTimeConstant(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns true if the element is a constant time reference.
- isCompileTimeString(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the node is a constant-time expression.
- isConstructor(MethodTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Checks if the provided method is a constructor method or no.
- isDeclaredOfName(TypeMirror, CharSequence) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Check if the type represents a declared type of the given qualified name.
- isDiamondTree(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the tree is of a diamond type.
- isEffectivelyFinal(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns true if the element is a effectively final element.
- isElementFromByteCode(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns true if the element is declared in ByteCode.
- isEnumSuper(MethodInvocationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- isErasedSubtype(TypeMirror, TypeMirror, Types) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true if the erased type of subtype is a subtype of the erased type of supertype.
- isError(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
- isExplicitThisDereference(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether the given expression is either "this" or an outer "C.this".
- isExpressionTree(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether the given tree represents an ExpressionTree.
- isFieldAccess(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether tree is a field access expressions, such as.
- isFinal(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns true if the element is a final element: a final field, final method, or final class.
- isFloating(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the argument is a floating point type.
- isFunctionalInterface(TypeMirror, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns whether or not type is a functional interface type (as defined in JLS 9.8).
- isImmutableTypeInJdk(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Return true if this is an immutable type in the JDK.
- isImplicitlyTypedLambda(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if tree is an implicitly typed lambda.
- isIntegral(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the argument is an integral type.
- isLocalVariable(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- isMethod(ExecutableElement, ExecutableElement, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns true if the given element is, or overrides, method.
- isMethodAccess(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether tree refers to a method element, such as.
- isMethodInvocation(Tree, ExecutableElement, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the given element is an invocation of the method, or of any method that
overrides that one.
- isMethodInvocation(Tree, List<ExecutableElement>, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the argument is an invocation of one of the given methods, or of any method
that overrides them.
- isNumeric(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the argument is a primitive numeric type.
- isObject(TypeElement) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Check if the element is an element for 'java.lang.Object'
- isObject(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Checks if the type represents a java.lang.Object declared type.
- isPrimitive(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns true iff the argument is a primitive type.
- isSameTAPosition(TypeAnnotationPosition, TypeAnnotationPosition) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
Compare two TypeAnnotationPositions for equality.
- isSameTAPositionExceptTreePos(TypeAnnotationPosition, TypeAnnotationPosition) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
- isSelfAccess(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the tree is a tree that 'looks like' either an access of a field or an
invocation of a method that are owned by the same accessing instance.
- isSpecificFieldAccess(Tree, VariableElement) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if and only if the given
tree represents a field access of the given
VariableElement.
- isStatic(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
Returns true if the element is a static element: whether it is a static field, static method,
or static class.
- isString(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Checks if the type represents a java.lang.String declared type.
- isStringCompoundConcatenation(CompoundAssignmentTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the compound assignment tree is a string concatenation.
- isStringConcatenation(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns true if the tree represents a String concatenation operation.
- isSuperCall(MethodInvocationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- isSuperConstructorCall(MethodInvocationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Checks if the method invocation is a call to super.
- isThisCall(MethodInvocationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- isThisConstructorCall(MethodInvocationTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Checks if the method invocation is a call to "this".
- isThrowable(TypeMirror) - Static method in class org.checkerframework.javacutil.TypesUtils
-
- isTreeInStaticScope(TreePath) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Returns whether or not the leaf of the tree path is in a static scope.
- isTypeCompoundContained(List<Attribute.TypeCompound>, Attribute.TypeCompound, Types) - Static method in class org.checkerframework.javacutil.TypeAnnotationUtils
-
Check whether a TypeCompound is contained in a list of TypeCompounds.
- isTypeDeclaration(Element) - Static method in class org.checkerframework.javacutil.ElementUtils
-
- isTypeDeclaration(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether the given tree represents a declaration of a type (including type
parameters).
- isTypeTree(Tree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Is the given tree a type instantiation?
- isUseOfElement(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
Determine whether the given ExpressionTree has an underlying element.
- isWindows() - Static method in class org.checkerframework.javacutil.PluginUtil
-
- sameAnnotationValue(AnnotationValue, AnnotationValue) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Return true iff the two AnnotationValue objects are the same.
- sameElementValues(AnnotationMirror, AnnotationMirror) - Static method in class org.checkerframework.javacutil.AnnotationUtils
-
Returns true if the two annotations have the same elements (fields).
- second - Variable in class org.checkerframework.javacutil.Pair
-
- setDeclaration(VariableTree) - Method in class org.checkerframework.javacutil.trees.DetachedVarSymbol
-
Set the declaration tree for the variable.
- setValue(CharSequence, AnnotationMirror) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, List<? extends Object>) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Object[]) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Boolean) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Character) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Double) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Float) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Integer) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Long) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, Short) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, String) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
Set the element/field with the given name, to the given value.
- setValue(CharSequence, TypeMirror) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- setValue(CharSequence, Class<?>) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- setValue(CharSequence, Enum<?>) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- setValue(CharSequence, VariableElement) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- setValue(CharSequence, Enum<?>[]) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- setValue(CharSequence, VariableElement[]) - Method in class org.checkerframework.javacutil.AnnotationBuilder
-
- skipParens(ExpressionTree) - Static method in class org.checkerframework.javacutil.TreeUtils
-
- substituteMethodReturnType(Element, TypeMirror, ProcessingEnvironment) - Static method in class org.checkerframework.javacutil.TypesUtils
-
Returns the return type of a method, given the receiver of the method call.
- symtab - Variable in class org.checkerframework.javacutil.trees.TreeBuilder
-