public class IrDocMethodParameter extends AbstractIrDocElement
IrDocMethod
.Constructor and Description |
---|
IrDocMethodParameter() |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(IrDocElementVisitor<R,P> visitor,
P context)
Accepts and calls back the visitor.
|
boolean |
equals(Object obj) |
IrDocElementKind |
getKind()
Returns the element kind.
|
IrDocSimpleName |
getName()
Returns the parameter name.
|
IrDocType |
getType()
Returns the parameter type.
|
int |
hashCode() |
boolean |
isVariableArity()
Returns whether this parameter is variable arity or not.
|
void |
setName(IrDocSimpleName name)
Sets the parameter name.
|
void |
setType(IrDocType type)
Sets the parameter type.
|
void |
setVariableArity(boolean variableArity)
Sets the whether this parameter is variable arity.
|
String |
toString() |
getLocation, setLocation
public IrDocElementKind getKind()
IrDocElement
public IrDocType getType()
public void setType(IrDocType type)
type
- the parameter typeIllegalArgumentException
- if the parameter is null
public boolean isVariableArity()
true
if this parameter is variable arity, otherwise false
public void setVariableArity(boolean variableArity)
variableArity
- true
if this parameter is variable arity, otherwise false
public IrDocSimpleName getName()
null
if it is not specifiedpublic void setName(IrDocSimpleName name)
name
- the parameter name, or null
to unsetpublic <R,P> R accept(IrDocElementVisitor<R,P> visitor, P context)
IrDocElement
R
- type of visitor resultP
- type of visitor contextvisitor
- the visitor to call backcontext
- the visitor contextCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.