public final class ReceiverParameter extends Node implements NodeWithType<ReceiverParameter,Type>, NodeWithAnnotations<ReceiverParameter>, NodeWithName<ReceiverParameter>
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
ReceiverParameter() |
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.
|
ReceiverParameter(Type type,
Name name) |
ReceiverParameter(Type type,
String name)
Creates a new
ReceiverParameter. |
| Modifier and Type | Method and 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.
|
ReceiverParameter |
clone() |
NodeList<AnnotationExpr> |
getAnnotations() |
ReceiverParameterMetaModel |
getMetaModel() |
Name |
getName() |
Type |
getType()
Gets the type
|
boolean |
remove(Node node) |
boolean |
replace(Node node,
Node replacementNode) |
ReceiverParameter |
setAnnotations(NodeList<AnnotationExpr> annotations) |
ReceiverParameter |
setName(Name name) |
ReceiverParameter |
setType(Type type)
Sets the type
|
addOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walkfinalize, getClass, notify, notifyAll, wait, wait, waitgetTypeAsString, setType, setType, tryAddImportToParentCompilationUnitaddAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnitgetNameAsString, setNamefindAncestor, findAncestorcontainsWithin, getBegin, getEndpublic ReceiverParameter()
public ReceiverParameter(Type type, String name)
ReceiverParameter.type - type of the parametername - name of the parameterpublic ReceiverParameter(NodeList<AnnotationExpr> annotations, Type type, Name name)
public ReceiverParameter(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Type type, Name name)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitableaccept in interface VisitableR - 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)
Visitablepublic Type getType()
NodeWithTypegetType in interface NodeWithType<ReceiverParameter,Type>public ReceiverParameter setType(Type type)
NodeWithTypesetType in interface NodeWithType<ReceiverParameter,Type>type - the typepublic NodeList<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<ReceiverParameter>public ReceiverParameter setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<ReceiverParameter>annotations - a null value is currently treated as an empty list. This behavior could change in the future,
so please avoid passing nullpublic ReceiverParameter clone()
public ReceiverParameterMetaModel getMetaModel()
getMetaModel in class Nodepublic Name getName()
getName in interface NodeWithName<ReceiverParameter>public ReceiverParameter setName(Name name)
setName in interface NodeWithName<ReceiverParameter>Copyright © 2007–2019. All rights reserved.