Uses of Class
com.github.javaparser.ast.expr.AnnotationExpr
Package
Description
-
Uses of AnnotationExpr in com.github.javaparser
Modifier and TypeMethodDescriptionstatic AnnotationExpr
StaticJavaParser.parseAnnotation(String annotation)
Parses the Java annotation contained in aString
and returns aAnnotationExpr
that represents it.Modifier and TypeMethodDescriptionJavaParser.parseAnnotation(String annotation)
Parses the Java annotation contained in aString
and returns aAnnotationExpr
that represents it. -
Uses of AnnotationExpr in com.github.javaparser.ast
Modifier and TypeMethodDescriptionArrayCreationLevel.getAnnotations()
PackageDeclaration.getAnnotations()
Retrieves the list of annotations declared before the package declaration.Modifier and TypeMethodDescriptionArrayCreationLevel.setAnnotations(NodeList<AnnotationExpr> annotations)
PackageDeclaration.setAnnotations(NodeList<AnnotationExpr> annotations)
ModifierConstructorDescriptionArrayCreationLevel(Expression dimension, NodeList<AnnotationExpr> annotations)
ArrayCreationLevel(TokenRange tokenRange, Expression dimension, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.PackageDeclaration(NodeList<AnnotationExpr> annotations, Name name)
PackageDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name)
This constructor is used by the parser and is considered private. -
Uses of AnnotationExpr in com.github.javaparser.ast.body
Modifier and TypeMethodDescriptionBodyDeclaration.getAnnotations()
Parameter.getAnnotations()
ReceiverParameter.getAnnotations()
Parameter.getVarArgsAnnotations()
Modifier and TypeMethodDescriptionBodyDeclaration.setAnnotations(NodeList<AnnotationExpr> annotations)
Parameter.setAnnotations(NodeList<AnnotationExpr> annotations)
ReceiverParameter.setAnnotations(NodeList<AnnotationExpr> annotations)
Parameter.setVarArgsAnnotations(NodeList<AnnotationExpr> varArgsAnnotations)
ModifierConstructorDescriptionBodyDeclaration(NodeList<AnnotationExpr> annotations)
BodyDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.CompactConstructorDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, BlockStmt body)
This constructor is used by the parser and is considered private.EnumConstantDeclaration(NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody)
EnumConstantDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody)
This constructor is used by the parser and is considered private.ReceiverParameter(NodeList<AnnotationExpr> annotations, Type type, Name name)
ReceiverParameter(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Type type, Name name)
This constructor is used by the parser and is considered private. -
Uses of AnnotationExpr in com.github.javaparser.ast.expr
Modifier and TypeClassDescriptionclass
An annotation that uses only the annotation type name.class
An annotation that has zero or more key-value pairs.@Mapping(a=5, d=10)
class
An annotation that has a single value.Modifier and TypeMethodDescriptionAnnotationExpr.asAnnotationExpr()
Expression.asAnnotationExpr()
AnnotationExpr.clone()
Modifier and TypeMethodDescriptionVariableDeclarationExpr.getAnnotations()
AnnotationExpr.toAnnotationExpr()
Expression.toAnnotationExpr()
Modifier and TypeMethodDescriptionvoid
AnnotationExpr.ifAnnotationExpr(Consumer<AnnotationExpr> action)
void
Expression.ifAnnotationExpr(Consumer<AnnotationExpr> action)
VariableDeclarationExpr.setAnnotations(NodeList<AnnotationExpr> annotations)
-
Uses of AnnotationExpr in com.github.javaparser.ast.modules
Modifier and TypeMethodDescriptionModuleDeclaration.setAnnotations(NodeList<AnnotationExpr> annotations)
ModifierConstructorDescriptionModuleDeclaration(NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList<ModuleDirective> directives)
ModuleDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList<ModuleDirective> directives)
This constructor is used by the parser and is considered private. -
Uses of AnnotationExpr in com.github.javaparser.ast.nodeTypes
Modifier and TypeMethodDescriptiondefault AnnotationExpr
NodeWithAnnotations.getAnnotation(int i)
Modifier and TypeMethodDescriptiondefault Optional<AnnotationExpr>
NodeWithAnnotations.getAnnotationByClass(Class<? extends Annotation> annotationClass)
Try to find an annotation by its classdefault Optional<AnnotationExpr>
NodeWithAnnotations.getAnnotationByName(String annotationName)
Try to find an annotation by its nameNodeWithAnnotations.getAnnotations()
Modifier and TypeMethodDescriptiondefault N
NodeWithAnnotations.addAnnotation(AnnotationExpr element)
default N
NodeWithAnnotations.setAnnotation(int i, AnnotationExpr element)
Modifier and TypeMethodDescriptionNodeWithAnnotations.setAnnotations(NodeList<AnnotationExpr> annotations)
-
Uses of AnnotationExpr in com.github.javaparser.ast.type
Modifier and TypeMethodDescriptionArrayType.ArrayBracketPair.getAnnotations()
Type.getAnnotations()
Modifier and TypeMethodDescriptionArrayType.ArrayBracketPair.setAnnotations(NodeList<AnnotationExpr> annotations)
ArrayType.setAnnotations(NodeList<AnnotationExpr> annotations)
ClassOrInterfaceType.setAnnotations(NodeList<AnnotationExpr> annotations)
IntersectionType.setAnnotations(NodeList<AnnotationExpr> annotations)
PrimitiveType.setAnnotations(NodeList<AnnotationExpr> annotations)
Type.setAnnotations(NodeList<AnnotationExpr> annotations)
TypeParameter.setAnnotations(NodeList<AnnotationExpr> annotations)
UnionType.setAnnotations(NodeList<AnnotationExpr> annotations)
UnknownType.setAnnotations(NodeList<AnnotationExpr> annotations)
VarType.setAnnotations(NodeList<AnnotationExpr> annotations)
VoidType.setAnnotations(NodeList<AnnotationExpr> annotations)
WildcardType.setAnnotations(NodeList<AnnotationExpr> annotations)
ModifierConstructorDescriptionArrayBracketPair(TokenRange tokenRange, ArrayType.Origin origin, NodeList<AnnotationExpr> annotations)
ArrayType(Type componentType, ArrayType.Origin origin, NodeList<AnnotationExpr> annotations)
ArrayType(TokenRange tokenRange, Type componentType, ArrayType.Origin origin, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.PrimitiveType(PrimitiveType.Primitive type, NodeList<AnnotationExpr> annotations)
PrimitiveType(TokenRange tokenRange, PrimitiveType.Primitive type, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.ReferenceType(NodeList<AnnotationExpr> annotations)
ReferenceType(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.Type(NodeList<AnnotationExpr> annotations)
Type(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.WildcardType(ReferenceType extendedType, ReferenceType superType, NodeList<AnnotationExpr> annotations)
WildcardType(TokenRange tokenRange, ReferenceType extendedType, ReferenceType superType, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private. -
Uses of AnnotationExpr in com.github.javaparser.printer
Modifier and TypeMethodDescriptionprotected void
DefaultPrettyPrinterVisitor.printAnnotations(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, Void arg)
protected void
PrettyPrintVisitor.printAnnotations(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, Void arg)
Deprecated.protected void
DefaultPrettyPrinterVisitor.printMemberAnnotations(NodeList<AnnotationExpr> annotations, Void arg)
protected void
PrettyPrintVisitor.printMemberAnnotations(NodeList<AnnotationExpr> annotations, Void arg)
Deprecated. -
Uses of AnnotationExpr in com.github.javaparser.utils
Modifier and TypeMethodDescriptionstatic AnnotationExpr
PositionUtils.getLastAnnotation(Node node)