public final class Parameter extends Node implements NodeWithType<Parameter>, NodeWithElementType<Parameter>, NodeWithAnnotations<Parameter>, NodeWithName<Parameter>, NodeWithModifiers<Parameter>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
Parameter() |
Parameter(EnumSet<Modifier> modifiers,
Type elementType,
VariableDeclaratorId id) |
Parameter(Range range,
EnumSet<Modifier> modifiers,
List<AnnotationExpr> annotations,
Type elementType,
List<ArrayBracketPair> arrayBracketPairsAfterElementType,
boolean isVarArgs,
VariableDeclaratorId id) |
Parameter(Type elementType,
VariableDeclaratorId id) |
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitsetType, setTypesetElementType, setElementTypeaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentaddModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilepublic Parameter()
public Parameter(Type elementType, VariableDeclaratorId id)
public Parameter(EnumSet<Modifier> modifiers, Type elementType, VariableDeclaratorId id)
public Parameter(Range range, EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, Type elementType, List<ArrayBracketPair> arrayBracketPairsAfterElementType, boolean isVarArgs, VariableDeclaratorId id)
public static Parameter create(Type elementType, String name)
Parameter.elementType - 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 Parameter setVarArgs(boolean isVarArgs)
public List<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<Parameter>public VariableDeclaratorId getId()
public String getName()
getName in interface NodeWithName<Parameter>public Parameter setName(String name)
setName in interface NodeWithName<Parameter>public EnumSet<Modifier> getModifiers()
getModifiers in interface NodeWithModifiers<Parameter>Modifierpublic Parameter setAnnotations(List<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<Parameter>annotations - a null value is currently treated as an empty list. This behavior could change
in the future, so please avoid passing nullpublic void setId(VariableDeclaratorId id)
public Parameter setModifiers(EnumSet<Modifier> modifiers)
setModifiers in interface NodeWithModifiers<Parameter>public Type getElementType()
getElementType in interface NodeWithElementType<Parameter>public Parameter setElementType(Type elementType)
setElementType in interface NodeWithElementType<Parameter>elementType - the element elementTypepublic List<ArrayBracketPair> getArrayBracketPairsAfterElementType()
getArrayBracketPairsAfterElementType in interface NodeWithElementType<Parameter>public Parameter setArrayBracketPairsAfterElementType(List<ArrayBracketPair> arrayBracketPairsAfterType)
setArrayBracketPairsAfterElementType in interface NodeWithElementType<Parameter>Copyright © 2007–2016. All rights reserved.