public class Parameter extends AnnotatedNode
Represents a parameter on a constructor or method call. The type name is optional - it defaults to java.lang.Object if unknown.
Modifiers | Name | Description |
---|---|---|
static Parameter[] |
EMPTY_ARRAY |
Type | Name and description |
---|---|
boolean |
closureSharedVariable |
boolean |
inStaticContext |
Expression |
initialExpression |
int |
modifiers |
org.codehaus.groovy.ast.ClassNode |
originType |
org.codehaus.groovy.ast.ClassNode |
type |
Constructor and description |
---|
Parameter
(org.codehaus.groovy.ast.ClassNode type, String name) |
Parameter
(org.codehaus.groovy.ast.ClassNode type, String name, Expression defaultValue) |
Type Params | Return Type | Name and description |
---|---|---|
|
Expression |
getDefaultValue() |
|
Expression |
getInitialExpression() @return the default value expression for this parameter or null if no default value is specified |
|
int |
getModifiers() |
|
String |
getName() |
|
org.codehaus.groovy.ast.ClassNode |
getOriginType() |
|
org.codehaus.groovy.ast.ClassNode |
getType() |
|
boolean |
hasInitialExpression() |
|
boolean |
isClosureSharedVariable() |
|
boolean |
isDynamicTyped() |
|
boolean |
isInStaticContext() |
|
void |
setClosureSharedVariable(boolean inClosure) |
|
void |
setInStaticContext(boolean inStaticContext) |
|
void |
setInitialExpression(Expression init) |
|
void |
setModifiers(int modifiers) |
|
void |
setOriginType(org.codehaus.groovy.ast.ClassNode cn) |
|
void |
setType(org.codehaus.groovy.ast.ClassNode type) |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class AnnotatedNode |
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Copyright © 2003-2019 The Apache Software Foundation. All rights reserved.