public abstract class BaseParameter<T> extends Node implements NodeWithAnnotations<T>, NodeWithName<T>, NodeWithModifiers<T>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
BaseParameter() |
BaseParameter(EnumSet<Modifier> modifiers,
List<AnnotationExpr> annotations,
VariableDeclaratorId id) |
BaseParameter(EnumSet<Modifier> modifiers,
VariableDeclaratorId id) |
BaseParameter(Range range,
EnumSet<Modifier> modifiers,
List<AnnotationExpr> annotations,
VariableDeclaratorId id) |
BaseParameter(VariableDeclaratorId id) |
| Modifier and Type | Method and Description |
|---|---|
List<AnnotationExpr> |
getAnnotations() |
VariableDeclaratorId |
getId() |
EnumSet<Modifier> |
getModifiers()
Return the modifiers of this parameter declaration.
|
String |
getName() |
T |
setAnnotations(List<AnnotationExpr> annotations) |
void |
setId(VariableDeclaratorId id) |
T |
setModifiers(EnumSet<Modifier> modifiers) |
T |
setName(String name) |
accept, accept, addOrphanComment, 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, waitaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentaddModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilepublic BaseParameter()
public BaseParameter(VariableDeclaratorId id)
public BaseParameter(EnumSet<Modifier> modifiers, VariableDeclaratorId id)
public BaseParameter(EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, VariableDeclaratorId id)
public BaseParameter(Range range, EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, VariableDeclaratorId id)
public List<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<T>public VariableDeclaratorId getId()
public String getName()
getName in interface NodeWithName<T>public T setName(String name)
setName in interface NodeWithName<T>public EnumSet<Modifier> getModifiers()
getModifiers in interface NodeWithModifiers<T>Modifierpublic T setAnnotations(List<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<T>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 T setModifiers(EnumSet<Modifier> modifiers)
setModifiers in interface NodeWithModifiers<T>Copyright © 2007–2016. All rights reserved.