NodeWithIdentifier<SimpleName>
, NodeWithRange<SimpleName>
, NodeWithTokenRange<SimpleName>
, Observable
, Visitable
, HasParentNode<SimpleName>
, Cloneable
public final class SimpleName extends Node implements NodeWithIdentifier<SimpleName>
Name
Node.ObserverRegistrationMode, Node.Parsedness
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor | Description |
---|---|
SimpleName() |
|
SimpleName(TokenRange tokenRange,
String identifier) |
This constructor is used by the parser and is considered private.
|
SimpleName(String identifier) |
Modifier and Type | Method | Description |
---|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg) |
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg) |
Accept method for visitor support.
|
String |
asString() |
|
SimpleName |
clone() |
|
String |
getIdentifier() |
|
SimpleNameMetaModel |
getMetaModel() |
|
boolean |
remove(Node node) |
|
boolean |
replace(Node node,
Node replacementNode) |
|
SimpleName |
setIdentifier(String identifier) |
getAncestorOfType
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
getId, setId
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public SimpleName()
public SimpleName(String identifier)
@Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator") public SimpleName(TokenRange tokenRange, String identifier)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
accept
in interface Visitable
R
- the type of the return value of the visitorA
- the type the user argument passed to the visitorv
- the visitor implementationarg
- the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitable
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public String getIdentifier()
getIdentifier
in interface NodeWithIdentifier<SimpleName>
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public SimpleName setIdentifier(String identifier)
setIdentifier
in interface NodeWithIdentifier<SimpleName>
@Generated("com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
public String asString()
@Generated("com.github.javaparser.generator.core.node.CloneGenerator") public SimpleName clone()
@Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator") public SimpleNameMetaModel getMetaModel()
getMetaModel
in class Node
@Generated("com.github.javaparser.generator.core.node.ReplaceMethodGenerator") public boolean replace(Node node, Node replacementNode)
Copyright © 2007–2019. All rights reserved.