public final class Parameter extends BaseParameter<Parameter> implements NodeWithType<Parameter>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
Parameter() |
Parameter(EnumSet<Modifier> modifiers,
Type type,
VariableDeclaratorId id) |
Parameter(Range range,
EnumSet<Modifier> modifiers,
List<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
VariableDeclaratorId id) |
Parameter(Type type,
VariableDeclaratorId id) |
| 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.
|
static Parameter |
create(Type type,
String name)
Creates a new
Parameter. |
Type |
getType()
Gets the type
|
boolean |
isVarArgs() |
Parameter |
setType(Type type)
Sets the type
|
void |
setVarArgs(boolean isVarArgs) |
getAnnotations, getId, getModifiers, getName, setAnnotations, setId, setModifiers, setNameaddOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitsetTypeaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentaddModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilepublic Parameter()
public Parameter(Type type, VariableDeclaratorId id)
public Parameter(EnumSet<Modifier> modifiers, Type type, VariableDeclaratorId id)
public Parameter(Range range, EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, Type type, boolean isVarArgs, VariableDeclaratorId id)
public static Parameter create(Type type, String name)
Parameter.type - type of the parametername - name of the parameterParameterpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic Type getType()
NodeWithTypegetType in interface NodeWithType<Parameter>public boolean isVarArgs()
public Parameter setType(Type type)
NodeWithTypesetType in interface NodeWithType<Parameter>type - the typepublic void setVarArgs(boolean isVarArgs)
Copyright © 2007–2016. All rights reserved.