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, findParent, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, 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, waitsetType, setType, tryAddImportToParentCompilationUnitaddAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnitgetNameAsString, setNamegetAncestorOfTypecontainsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBeforepublic 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)
@Generated(value="com.github.javaparser.generator.core.node.MainConstructorGenerator") public ReceiverParameter(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Type type, Name name)
@Generated(value="com.github.javaparser.generator.core.node.AcceptGenerator") 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)@Generated(value="com.github.javaparser.generator.core.node.AcceptGenerator") public <A> void accept(VoidVisitor<A> v, A arg)
Visitable@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public Type getType()
NodeWithTypegetType in interface NodeWithType<ReceiverParameter,Type>@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public ReceiverParameter setType(Type type)
NodeWithTypesetType in interface NodeWithType<ReceiverParameter,Type>type - the type@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<ReceiverParameter>@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") 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 null@Generated(value="com.github.javaparser.generator.core.node.CloneGenerator") public ReceiverParameter clone()
@Generated(value="com.github.javaparser.generator.core.node.GetMetaModelGenerator") public ReceiverParameterMetaModel getMetaModel()
getMetaModel in class Node@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public Name getName()
getName in interface NodeWithName<ReceiverParameter>@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public ReceiverParameter setName(Name name)
setName in interface NodeWithName<ReceiverParameter>@Generated(value="com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
Copyright © 2007–2018. All rights reserved.