public 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.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, 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, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findByRange, findCompilationUnit, findData, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getDefaultPrinterConfiguration, getLineEndingStyle, getLineEndingStyleOrDefault, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getPrinter, getPrinter, getRange, getSymbolResolver, getTokenRange, hashCode, hasScope, isAncestorOf, isPhantom, 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, walk
finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeAsString, setType, setType, tryAddImportToParentCompilationUnit
addAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnit
getNameAsString, setName
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOf
containsWithin, containsWithinRange, getBegin, getEnd, hasRange
public 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)
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
public Type getType()
NodeWithType
getType
in interface NodeWithType<ReceiverParameter,Type>
public ReceiverParameter setType(Type type)
NodeWithType
setType
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 Node
public Name getName()
getName
in interface NodeWithName<ReceiverParameter>
public ReceiverParameter setName(Name name)
setName
in interface NodeWithName<ReceiverParameter>
Copyright © 2007–2024. All rights reserved.