com.github.antlrjavaparser.api.body
Class Parameter
java.lang.Object
com.github.antlrjavaparser.api.Node
com.github.antlrjavaparser.api.body.Parameter
public final class Parameter
- extends Node
- Author:
- Julio Vilmar Gesser
Constructor Summary |
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)
|
Methods inherited from class com.github.antlrjavaparser.api.Node |
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString |
Parameter
public Parameter()
Parameter
public Parameter(Type type,
VariableDeclaratorId id)
Parameter
public Parameter(int modifiers,
Type type,
VariableDeclaratorId id)
Parameter
public Parameter(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
VariableDeclaratorId id)
accept
public <R,A> R accept(GenericVisitor<R,A> v,
A arg)
- Description copied from class:
Node
- Accept method for visitor support.
- Specified by:
accept
in class Node
- Type Parameters:
R
- the type the return value of the visitorA
- the type the argument passed for the visitor- Parameters:
v
- the visitor implementationarg
- any value relevant for the visitor
- Returns:
- the result of the visit
accept
public <A> void accept(VoidVisitor<A> v,
A arg)
- Description copied from class:
Node
- Accept method for visitor support.
- Specified by:
accept
in class Node
- Type Parameters:
A
- the type the argument passed for the visitor- Parameters:
v
- the visitor implementationarg
- any value relevant for the visitor
getAnnotations
public List<AnnotationExpr> getAnnotations()
getId
public VariableDeclaratorId getId()
getModifiers
public int getModifiers()
- Return the modifiers of this parameter declaration.
- Returns:
- modifiers
- See Also:
ModifierSet
getType
public Type getType()
isVarArgs
public boolean isVarArgs()
setAnnotations
public void setAnnotations(List<AnnotationExpr> annotations)
setId
public void setId(VariableDeclaratorId id)
setModifiers
public void setModifiers(int modifiers)
setType
public void setType(Type type)
setVarArgs
public void setVarArgs(boolean isVarArgs)
Copyright © 2013. All Rights Reserved.