Uses of Class
com.github.javaparser.ast.expr.AnnotationExpr
-
Packages that use AnnotationExpr Package Description com.github.javaparser com.github.javaparser.ast com.github.javaparser.ast.body com.github.javaparser.ast.expr com.github.javaparser.ast.modules com.github.javaparser.ast.nodeTypes com.github.javaparser.ast.type com.github.javaparser.printer com.github.javaparser.symbolsolver.javaparsermodel Implementation of model based on JavaParser.com.github.javaparser.utils -
-
Uses of AnnotationExpr in com.github.javaparser
Fields in com.github.javaparser with type parameters of type AnnotationExpr Modifier and Type Field Description static ParseStart<AnnotationExpr>ParseStart. ANNOTATION(package private) NodeList<AnnotationExpr>ModifierHolder. annotationsMethods in com.github.javaparser that return AnnotationExpr Modifier and Type Method Description AnnotationExprGeneratedJavaParser. Annotation()https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7AnnotationExprGeneratedJavaParser. AnnotationParseStart()AnnotationExprJavaParserAdapter. parseAnnotation(java.lang.String annotation)static AnnotationExprStaticJavaParser. parseAnnotation(java.lang.String annotation)Parses the Java annotation contained in aStringand returns aAnnotationExprthat represents it.Methods in com.github.javaparser that return types with arguments of type AnnotationExpr Modifier and Type Method Description NodeList<AnnotationExpr>GeneratedJavaParser. Annotations()https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7ParseResult<AnnotationExpr>JavaParser. parseAnnotation(java.lang.String annotation)Parses the Java annotation contained in aStringand returns aAnnotationExprthat represents it.Method parameters in com.github.javaparser with type arguments of type AnnotationExpr Modifier and Type Method Description ClassOrInterfaceTypeGeneratedJavaParser. ClassOrInterfaceType(NodeList<AnnotationExpr> firstAnnotations)IntersectionTypeGeneratedJavaParser. IntersectionType(NodeList<AnnotationExpr> annotations)https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.9 An intersection type takes the form T1 & ...PrimitiveTypeGeneratedJavaParser. PrimitiveType(NodeList<AnnotationExpr> annotations)Note thatcharandbyteare treated as anIntegralType, which is a subtype ofNumericType.ReferenceTypeGeneratedJavaParser. ReferenceType(NodeList<AnnotationExpr> annotations)// TODO: JLS Has type and unannotated type, while JavaParser has type and annotated type.TypeGeneratedJavaParser. ResultType(NodeList<AnnotationExpr> annotations)https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.4.5TypeGeneratedJavaParser. Type(NodeList<AnnotationExpr> annotations)https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.1TypeParameterGeneratedJavaParser. TypeParameter(NodeList<AnnotationExpr> annotations)Note that theTypeParameterModifieris defined as anAnnotation.WildcardTypeGeneratedJavaParser. Wildcard(NodeList<AnnotationExpr> firstAnnotations)https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.5.1 -
Uses of AnnotationExpr in com.github.javaparser.ast
Fields in com.github.javaparser.ast with type parameters of type AnnotationExpr Modifier and Type Field Description private NodeList<AnnotationExpr>ArrayCreationLevel. annotationsprivate NodeList<AnnotationExpr>PackageDeclaration. annotationsMethods in com.github.javaparser.ast that return types with arguments of type AnnotationExpr Modifier and Type Method Description NodeList<AnnotationExpr>ArrayCreationLevel. getAnnotations()NodeList<AnnotationExpr>PackageDeclaration. getAnnotations()Retrieves the list of annotations declared before the package declaration.Method parameters in com.github.javaparser.ast with type arguments of type AnnotationExpr Modifier and Type Method Description ArrayCreationLevelArrayCreationLevel. setAnnotations(NodeList<AnnotationExpr> annotations)PackageDeclarationPackageDeclaration. setAnnotations(NodeList<AnnotationExpr> annotations)Constructor parameters in com.github.javaparser.ast with type arguments of type AnnotationExpr Constructor Description ArrayCreationLevel(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
Fields in com.github.javaparser.ast.body with type parameters of type AnnotationExpr Modifier and Type Field Description private NodeList<AnnotationExpr>BodyDeclaration. annotationsprivate NodeList<AnnotationExpr>Parameter. annotationsprivate NodeList<AnnotationExpr>ReceiverParameter. annotationsprivate NodeList<AnnotationExpr>Parameter. varArgsAnnotationsMethods in com.github.javaparser.ast.body that return types with arguments of type AnnotationExpr Modifier and Type Method Description NodeList<AnnotationExpr>BodyDeclaration. getAnnotations()NodeList<AnnotationExpr>Parameter. getAnnotations()NodeList<AnnotationExpr>ReceiverParameter. getAnnotations()NodeList<AnnotationExpr>Parameter. getVarArgsAnnotations()Method parameters in com.github.javaparser.ast.body with type arguments of type AnnotationExpr Modifier and Type Method Description TBodyDeclaration. setAnnotations(NodeList<AnnotationExpr> annotations)ParameterParameter. setAnnotations(NodeList<AnnotationExpr> annotations)ReceiverParameterReceiverParameter. setAnnotations(NodeList<AnnotationExpr> annotations)ParameterParameter. setVarArgsAnnotations(NodeList<AnnotationExpr> varArgsAnnotations)Constructor parameters in com.github.javaparser.ast.body with type arguments of type AnnotationExpr Constructor Description BodyDeclaration(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
Subclasses of AnnotationExpr in com.github.javaparser.ast.expr Modifier and Type Class Description classMarkerAnnotationExprAn annotation that uses only the annotation type name.classNormalAnnotationExprAn annotation that has one or more key-value pairs.@Mapping(a=5, d=10)classSingleMemberAnnotationExprAn annotation that has a single value.Fields in com.github.javaparser.ast.expr with type parameters of type AnnotationExpr Modifier and Type Field Description private NodeList<AnnotationExpr>VariableDeclarationExpr. annotationsMethods in com.github.javaparser.ast.expr that return AnnotationExpr Modifier and Type Method Description AnnotationExprAnnotationExpr. asAnnotationExpr()AnnotationExprExpression. asAnnotationExpr()AnnotationExprAnnotationExpr. clone()AnnotationExprAnnotationExpr. setName(Name name)Methods in com.github.javaparser.ast.expr that return types with arguments of type AnnotationExpr Modifier and Type Method Description NodeList<AnnotationExpr>VariableDeclarationExpr. getAnnotations()java.util.Optional<AnnotationExpr>AnnotationExpr. toAnnotationExpr()java.util.Optional<AnnotationExpr>Expression. toAnnotationExpr()Method parameters in com.github.javaparser.ast.expr with type arguments of type AnnotationExpr Modifier and Type Method Description voidAnnotationExpr. ifAnnotationExpr(java.util.function.Consumer<AnnotationExpr> action)voidExpression. ifAnnotationExpr(java.util.function.Consumer<AnnotationExpr> action)VariableDeclarationExprVariableDeclarationExpr. setAnnotations(NodeList<AnnotationExpr> annotations) -
Uses of AnnotationExpr in com.github.javaparser.ast.modules
Fields in com.github.javaparser.ast.modules with type parameters of type AnnotationExpr Modifier and Type Field Description private NodeList<AnnotationExpr>ModuleDeclaration. annotationsMethods in com.github.javaparser.ast.modules that return types with arguments of type AnnotationExpr Modifier and Type Method Description NodeList<AnnotationExpr>ModuleDeclaration. getAnnotations()Method parameters in com.github.javaparser.ast.modules with type arguments of type AnnotationExpr Modifier and Type Method Description ModuleDeclarationModuleDeclaration. setAnnotations(NodeList<AnnotationExpr> annotations)Constructor parameters in com.github.javaparser.ast.modules with type arguments of type AnnotationExpr Constructor Description ModuleDeclaration(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
Methods in com.github.javaparser.ast.nodeTypes that return AnnotationExpr Modifier and Type Method Description default AnnotationExprNodeWithAnnotations. getAnnotation(int i)Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type AnnotationExpr Modifier and Type Method Description default java.util.Optional<AnnotationExpr>NodeWithAnnotations. getAnnotationByClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)Try to find an annotation by its classdefault java.util.Optional<AnnotationExpr>NodeWithAnnotations. getAnnotationByName(java.lang.String annotationName)Try to find an annotation by its nameNodeList<AnnotationExpr>NodeWithAnnotations. getAnnotations()Methods in com.github.javaparser.ast.nodeTypes with parameters of type AnnotationExpr Modifier and Type Method Description default NNodeWithAnnotations. addAnnotation(AnnotationExpr element)default NNodeWithAnnotations. setAnnotation(int i, AnnotationExpr element)Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type AnnotationExpr Modifier and Type Method Description NNodeWithAnnotations. setAnnotations(NodeList<AnnotationExpr> annotations) -
Uses of AnnotationExpr in com.github.javaparser.ast.type
Fields in com.github.javaparser.ast.type with type parameters of type AnnotationExpr Modifier and Type Field Description private NodeList<AnnotationExpr>ArrayType.ArrayBracketPair. annotationsprivate NodeList<AnnotationExpr>Type. annotationsMethods in com.github.javaparser.ast.type that return AnnotationExpr Modifier and Type Method Description AnnotationExprType. getAnnotation(int i)Methods in com.github.javaparser.ast.type that return types with arguments of type AnnotationExpr Modifier and Type Method Description NodeList<AnnotationExpr>ArrayType.ArrayBracketPair. getAnnotations()NodeList<AnnotationExpr>Type. getAnnotations()Constructors in com.github.javaparser.ast.type with parameters of type AnnotationExpr Constructor Description ArrayType(Type type, AnnotationExpr... annotations)Constructor parameters in com.github.javaparser.ast.type with type arguments of type AnnotationExpr Constructor Description ArrayBracketPair(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
Method parameters in com.github.javaparser.printer with type arguments of type AnnotationExpr Modifier and Type Method Description protected voidDefaultPrettyPrinterVisitor. printAnnotations(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, java.lang.Void arg)Prints a list of annotations.protected voidPrettyPrintVisitor. printAnnotations(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, java.lang.Void arg)Deprecated.protected voidDefaultPrettyPrinterVisitor. printMemberAnnotations(NodeList<AnnotationExpr> annotations, java.lang.Void arg)Print a list of annotations on a member, i.e., a top-level or body declaration.protected voidPrettyPrintVisitor. printMemberAnnotations(NodeList<AnnotationExpr> annotations, java.lang.Void arg)Deprecated. -
Uses of AnnotationExpr in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type AnnotationExpr Modifier and Type Method Description SymbolReference<ResolvedAnnotationDeclaration>JavaParserFacade. solve(AnnotationExpr annotationExpr) -
Uses of AnnotationExpr in com.github.javaparser.utils
Methods in com.github.javaparser.utils that return AnnotationExpr Modifier and Type Method Description static AnnotationExprPositionUtils. getLastAnnotation(Node node)
-