|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.Parameter
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.
Field Summary | |
---|---|
static Parameter[] |
EMPTY_ARRAY
|
Constructor Summary | |
Parameter(ClassNode type, String name)
|
|
Parameter(ClassNode type, String name, Expression defaultValue)
|
Method Summary | |
---|---|
Expression
|
getInitialExpression()
no default value is specified |
String
|
getName()
|
ClassNode
|
getOriginType()
|
ClassNode
|
getType()
|
boolean
|
hasInitialExpression()
|
boolean
|
isClosureSharedVariable()
|
boolean
|
isDynamicTyped()
|
boolean
|
isInStaticContext()
|
void
|
setClosureSharedVariable(boolean inClosure)
|
void
|
setInStaticContext(boolean inStaticContext)
|
void
|
setInitialExpression(Expression init)
|
void
|
setType(ClassNode type)
|
String
|
toString()
|
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, isSynthetic, setDeclaringClass, setSynthetic |
Methods inherited from class ASTNode | |
---|---|
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition, visit |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
static final Parameter[] EMPTY_ARRAY
Constructor Detail |
---|
public Parameter(ClassNode type, String name)
public Parameter(ClassNode type, String name, Expression defaultValue)
Method Detail |
---|
public Expression getInitialExpression()
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 setType(ClassNode type)
public String toString()
Copyright © 2003-2009 The Codehaus. All rights reserved.