Modifier and Type | Method and Description |
---|---|
static AnnotationExpr |
PositionUtils.getLastAnnotation(Node node) |
static AnnotationExpr |
JavaParser.parseAnnotation(java.lang.String annotation)
Parses the Java annotation contained in a
String and returns a
AnnotationExpr that represents it. |
Modifier and Type | Method and Description |
---|---|
java.util.List<AnnotationExpr> |
TypeParameter.getAnnotations() |
java.util.List<AnnotationExpr> |
PackageDeclaration.getAnnotations()
Retrieves the list of annotations declared before the package
declaration.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeParameter.setAnnotations(java.util.List<AnnotationExpr> annotations) |
void |
PackageDeclaration.setAnnotations(java.util.List<AnnotationExpr> annotations) |
Constructor and Description |
---|
PackageDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
java.util.List<AnnotationExpr> annotations,
NameExpr name) |
PackageDeclaration(java.util.List<AnnotationExpr> annotations,
NameExpr name) |
TypeParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
java.lang.String name,
java.util.List<ClassOrInterfaceType> typeBound,
java.util.List<AnnotationExpr> annotations) |
Modifier and Type | Method and Description |
---|---|
java.util.List<AnnotationExpr> |
BodyDeclaration.getAnnotations() |
java.util.List<AnnotationExpr> |
BaseParameter.getAnnotations() |
java.util.List<AnnotationExpr> |
AnnotableNode.getAnnotations() |
Modifier and Type | Method and Description |
---|---|
void |
BodyDeclaration.setAnnotations(java.util.List<AnnotationExpr> annotations) |
void |
BaseParameter.setAnnotations(java.util.List<AnnotationExpr> annotations) |
Constructor and Description |
---|
AnnotationDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.lang.String name,
java.util.List<BodyDeclaration> members) |
AnnotationDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.lang.String name,
java.util.List<BodyDeclaration> members) |
AnnotationMemberDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
Type type,
java.lang.String name,
Expression defaultValue) |
AnnotationMemberDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
Type type,
java.lang.String name,
Expression defaultValue) |
BaseParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
VariableDeclaratorId id) |
BaseParameter(int modifiers,
java.util.List<AnnotationExpr> annotations,
VariableDeclaratorId id) |
BodyDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
java.util.List<AnnotationExpr> annotations) |
BodyDeclaration(java.util.List<AnnotationExpr> annotations) |
ClassOrInterfaceDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
boolean isInterface,
java.lang.String name,
java.util.List<TypeParameter> typeParameters,
java.util.List<ClassOrInterfaceType> extendsList,
java.util.List<ClassOrInterfaceType> implementsList,
java.util.List<BodyDeclaration> members) |
ClassOrInterfaceDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
boolean isInterface,
java.lang.String name,
java.util.List<TypeParameter> typeParameters,
java.util.List<ClassOrInterfaceType> extendsList,
java.util.List<ClassOrInterfaceType> implementsList,
java.util.List<BodyDeclaration> members) |
ConstructorDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
java.lang.String name,
java.util.List<Parameter> parameters,
java.util.List<NameExpr> throws_,
BlockStmt block) |
ConstructorDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
java.lang.String name,
java.util.List<Parameter> parameters,
java.util.List<NameExpr> throws_,
BlockStmt block) |
EnumConstantDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
java.util.List<AnnotationExpr> annotations,
java.lang.String name,
java.util.List<Expression> args,
java.util.List<BodyDeclaration> classBody) |
EnumConstantDeclaration(java.util.List<AnnotationExpr> annotations,
java.lang.String name,
java.util.List<Expression> args,
java.util.List<BodyDeclaration> classBody) |
EnumDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.lang.String name,
java.util.List<ClassOrInterfaceType> implementsList,
java.util.List<EnumConstantDeclaration> entries,
java.util.List<BodyDeclaration> members) |
EnumDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.lang.String name,
java.util.List<ClassOrInterfaceType> implementsList,
java.util.List<EnumConstantDeclaration> entries,
java.util.List<BodyDeclaration> members) |
FieldDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
Type type,
java.util.List<VariableDeclarator> variables) |
FieldDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
Type type,
java.util.List<VariableDeclarator> variables) |
MethodDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
Type type,
java.lang.String name,
java.util.List<Parameter> parameters,
int arrayCount,
java.util.List<NameExpr> throws_,
BlockStmt block) |
MethodDeclaration(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<TypeParameter> typeParameters,
Type type,
java.lang.String name,
java.util.List<Parameter> parameters,
int arrayCount,
java.util.List<NameExpr> throws_,
BlockStmt block) |
MultiTypeParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<Type> types,
VariableDeclaratorId id) |
MultiTypeParameter(int modifiers,
java.util.List<AnnotationExpr> annotations,
java.util.List<Type> types,
VariableDeclaratorId id) |
Parameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
VariableDeclaratorId id) |
TypeDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
java.util.List<AnnotationExpr> annotations,
int modifiers,
java.lang.String name,
java.util.List<BodyDeclaration> members) |
TypeDeclaration(java.util.List<AnnotationExpr> annotations,
int modifiers,
java.lang.String name,
java.util.List<BodyDeclaration> members) |
Modifier and Type | Class and Description |
---|---|
class |
MarkerAnnotationExpr |
class |
NormalAnnotationExpr |
class |
SingleMemberAnnotationExpr |
Modifier and Type | Method and Description |
---|---|
java.util.List<AnnotationExpr> |
VariableDeclarationExpr.getAnnotations() |
java.util.List<java.util.List<AnnotationExpr>> |
ArrayCreationExpr.getArraysAnnotations() |
Modifier and Type | Method and Description |
---|---|
void |
VariableDeclarationExpr.setAnnotations(java.util.List<AnnotationExpr> annotations) |
void |
ArrayCreationExpr.setArraysAnnotations(java.util.List<java.util.List<AnnotationExpr>> arraysAnnotations) |
Constructor and Description |
---|
VariableDeclarationExpr(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
java.util.List<AnnotationExpr> annotations,
Type type,
java.util.List<VariableDeclarator> vars) |
Constructor and Description |
---|
CatchClause(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int exceptModifier,
java.util.List<AnnotationExpr> exceptAnnotations,
java.util.List<Type> exceptTypes,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
CatchClause(int exceptModifier,
java.util.List<AnnotationExpr> exceptAnnotations,
java.util.List<Type> exceptTypes,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
Modifier and Type | Method and Description |
---|---|
java.util.List<AnnotationExpr> |
Type.getAnnotations() |
java.util.List<java.util.List<AnnotationExpr>> |
ReferenceType.getArraysAnnotations()
Arrays annotations are annotations on the arrays modifiers of the type.
|
Modifier and Type | Method and Description |
---|---|
void |
Type.setAnnotations(java.util.List<AnnotationExpr> annotations) |
void |
ReferenceType.setArraysAnnotations(java.util.List<java.util.List<AnnotationExpr>> arraysAnnotations)
For a description of the arrayAnnotations field refer to
ReferenceType.getArraysAnnotations() |
Constructor and Description |
---|
ReferenceType(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Type type,
int arrayCount,
java.util.List<AnnotationExpr> annotations,
java.util.List<java.util.List<AnnotationExpr>> arraysAnnotations) |
ReferenceType(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Type type,
int arrayCount,
java.util.List<AnnotationExpr> annotations,
java.util.List<java.util.List<AnnotationExpr>> arraysAnnotations) |
Type(int beginLine,
int beginColumn,
int endLine,
int endColumn,
java.util.List<AnnotationExpr> annotations) |
Type(java.util.List<AnnotationExpr> annotation) |
Copyright © 2007-2015. All Rights Reserved.