public abstract class BaseParameter extends Node implements AnnotableNode, NamedNode, NodeWithModifiers
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
BaseParameter() |
BaseParameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
VariableDeclaratorId id)
Deprecated.
prefer using Range objects.
|
BaseParameter(int modifiers,
List<AnnotationExpr> annotations,
VariableDeclaratorId id) |
BaseParameter(int modifiers,
VariableDeclaratorId id) |
BaseParameter(Range range,
int modifiers,
List<AnnotationExpr> annotations,
VariableDeclaratorId id) |
BaseParameter(VariableDeclaratorId id) |
Modifier and Type | Method and Description |
---|---|
List<AnnotationExpr> |
getAnnotations() |
VariableDeclaratorId |
getId() |
int |
getModifiers()
Return the modifiers of this parameter declaration.
|
String |
getName() |
void |
setAnnotations(List<AnnotationExpr> annotations) |
void |
setId(VariableDeclaratorId id) |
void |
setModifiers(int modifiers) |
accept, accept, addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEnd, getEndColumn, getEndLine, getOrphanComments, getParentNode, getRange, hasComment, hashCode, isPositionedAfter, isPositionedAfter, isPositionedBefore, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBeginColumn, setBeginLine, setComment, setData, setEnd, setEndColumn, setEndLine, setParentNode, setRange, toString, toStringWithoutComments
public BaseParameter()
public BaseParameter(VariableDeclaratorId id)
public BaseParameter(int modifiers, VariableDeclaratorId id)
public BaseParameter(int modifiers, List<AnnotationExpr> annotations, VariableDeclaratorId id)
@Deprecated public BaseParameter(int beginLine, int beginColumn, int endLine, int endColumn, int modifiers, List<AnnotationExpr> annotations, VariableDeclaratorId id)
public BaseParameter(Range range, int modifiers, List<AnnotationExpr> annotations, VariableDeclaratorId id)
public List<AnnotationExpr> getAnnotations()
getAnnotations
in interface AnnotableNode
public VariableDeclaratorId getId()
public int getModifiers()
getModifiers
in interface NodeWithModifiers
ModifierSet
public void setAnnotations(List<AnnotationExpr> annotations)
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 void setModifiers(int modifiers)
Copyright © 2007–2016. All rights reserved.