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