public class Parameter extends AnnotatedNode implements Variable
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 Params | Return Type | Name and description |
---|---|---|
|
public Expression |
getDefaultValue() |
|
public Expression |
getInitialExpression()
|
|
public int |
getModifiers() |
|
public String |
getName() |
|
public ClassNode |
getOriginType() |
|
public ClassNode |
getType() |
|
public boolean |
hasInitialExpression() |
|
public boolean |
isClosureSharedVariable() |
|
public boolean |
isDynamicTyped() |
|
public boolean |
isInStaticContext() |
|
public void |
setClosureSharedVariable(boolean inClosure) |
|
public void |
setInStaticContext(boolean inStaticContext) |
|
public void |
setInitialExpression(Expression init) |
|
public void |
setModifiers(int modifiers) |
|
public void |
setOriginType(ClassNode cn) |
|
public void |
setType(ClassNode type) |
|
public 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, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.