public class SimpleGroovyParameter
extends Object
implements GroovyParameter
Default GroovyParameter implementation.
| Constructor and description |
|---|
SimpleGroovyParameter(String name)Creates a documented parameter with the supplied name. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addAnnotationRef(GroovyAnnotationRef ref)Adds an annotation reference declared on this parameter. |
|
public GroovyAnnotationRef[] |
annotations()Returns the annotations declared on this parameter.
|
|
public String |
defaultValue()Returns the default value expression declared for this parameter.
|
|
public boolean |
isTypeAvailable()Indicates whether the parameter type has been resolved. |
|
public String |
name()Returns the parameter name.
|
|
public void |
setDefaultValue(String defaultValue)Stores the default value expression declared for this parameter. |
|
public void |
setType(GroovyType type)Sets the resolved parameter type for later class resolution. |
|
public void |
setTypeName(String typeName)Stores the unresolved type name declared for this parameter. |
|
public void |
setVararg(boolean vararg)Sets whether this parameter is variadic. |
|
public GroovyType |
type()Returns the resolved parameter type.
|
|
public String |
typeName()Returns the parameter type name as declared in source.
|
|
public boolean |
vararg()Indicates whether this parameter is variadic. |
Creates a documented parameter with the supplied name.
name - the parameter nameAdds an annotation reference declared on this parameter.
ref - the annotation reference to addReturns the annotations declared on this parameter.
Returns the default value expression declared for this parameter.
null if none is declaredIndicates whether the parameter type has been resolved.
true if the parameter type is availableReturns the parameter name.
Stores the default value expression declared for this parameter.
defaultValue - the default value expressionSets the resolved parameter type for later class resolution.
type - the resolved parameter typeStores the unresolved type name declared for this parameter.
typeName - the declared type nameSets whether this parameter is variadic.
vararg - true if this parameter is variadicReturns the resolved parameter type.
null if it is unavailableReturns the parameter type name as declared in source.
Indicates whether this parameter is variadic.
true if this parameter is variadicCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.