public final class Parameter extends BaseParameter implements Refactorizable
| Constructor and Description |
|---|
Parameter() |
Parameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
VariableDeclaratorId id) |
Parameter(int modifiers,
Type type,
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.
|
Parameter |
clone() |
List<Node> |
getChildren() |
Type |
getType() |
boolean |
isVarArgs() |
boolean |
removeChild(Node child) |
boolean |
rename(String newName)
Renames the element and all their usages if the newName has no conflicts.
|
void |
setType(Type type) |
void |
setVarArgs(boolean isVarArgs) |
addBodyReference, addUsage, getAnnotations, getBodyReferences, getId, getMethodDefinitions, getModifiers, getScopeLevel, getSymbolData, getSymbolName, getTypeDefinitions, getUsages, getVariableDefinitions, replaceChildNode, setAnnotations, setBodyReferences, setId, setModifiers, setScopeLevel, setSymbolData, setUsagescheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic Parameter()
public Parameter(Type type, VariableDeclaratorId id)
public Parameter(int modifiers,
Type type,
VariableDeclaratorId id)
public Parameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
VariableDeclaratorId id)
public boolean removeChild(Node child)
removeChild in class BaseParameterpublic List<Node> getChildren()
getChildren in class BaseParameterpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic Type getType()
public boolean isVarArgs()
public void setType(Type type)
public void setVarArgs(boolean isVarArgs)
public boolean rename(String newName)
Refactorizablerename in interface RefactorizablenewName - new name to setpublic Parameter clone() throws CloneNotSupportedException
clone in class NodeCloneNotSupportedExceptionCopyright © 2018. All rights reserved.