Package com.github.javaparser.ast.expr
Class AnnotationExpr
- java.lang.Object
-
- com.github.javaparser.ast.Node
-
- com.github.javaparser.ast.expr.Expression
-
- com.github.javaparser.ast.expr.AnnotationExpr
-
- All Implemented Interfaces:
NodeWithName<AnnotationExpr>,NodeWithRange<Node>,NodeWithTokenRange<Node>,Observable,Visitable,HasParentNode<Node>,Cloneable
- Direct Known Subclasses:
MarkerAnnotationExpr,NormalAnnotationExpr,SingleMemberAnnotationExpr
public abstract class AnnotationExpr extends Expression implements NodeWithName<AnnotationExpr>
A base class for the different types of annotations.- Author:
- Julio Vilmar Gesser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.javaparser.ast.Node
Node.ObserverRegistrationMode, Node.Parsedness
-
-
Field Summary
Fields Modifier and Type Field Description protected Namename-
Fields inherited from class com.github.javaparser.ast.Node
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
-
-
Constructor Summary
Constructors Constructor Description AnnotationExpr()AnnotationExpr(Name name)AnnotationExpr(TokenRange tokenRange, Name name)This constructor is used by the parser and is considered private.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationExprclone()AnnotationExprMetaModelgetMetaModel()NamegetName()booleanremove(Node node)booleanreplace(Node node, Node replacementNode)AnnotationExprsetName(Name name)-
Methods inherited from class com.github.javaparser.ast.Node
addOrphanComment, customInitialization, equals, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.HasParentNode
getAncestorOfType
-
Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithName
getNameAsString, setName
-
Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithRange
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
-
-
-
-
Field Detail
-
name
protected Name name
-
-
Constructor Detail
-
AnnotationExpr
public AnnotationExpr()
-
AnnotationExpr
public AnnotationExpr(Name name)
-
AnnotationExpr
@Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator") public AnnotationExpr(TokenRange tokenRange, Name name)
This constructor is used by the parser and is considered private.
-
-
Method Detail
-
getName
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public Name getName()
- Specified by:
getNamein interfaceNodeWithName<AnnotationExpr>
-
setName
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public AnnotationExpr setName(Name name)
- Specified by:
setNamein interfaceNodeWithName<AnnotationExpr>
-
remove
@Generated("com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
- Overrides:
removein classExpression
-
clone
@Generated("com.github.javaparser.generator.core.node.CloneGenerator") public AnnotationExpr clone()
- Overrides:
clonein classExpression
-
getMetaModel
@Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator") public AnnotationExprMetaModel getMetaModel()
- Overrides:
getMetaModelin classExpression- Returns:
- get JavaParser specific node introspection information.
-
replace
@Generated("com.github.javaparser.generator.core.node.ReplaceMethodGenerator") public boolean replace(Node node, Node replacementNode)
- Overrides:
replacein classExpression
-
-