|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.Parameter
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.
Field Summary | |
---|---|
static Parameter[] |
EMPTY_ARRAY
|
Constructor Summary | |
Parameter(ClassNode type, java.lang.String name)
|
|
Parameter(ClassNode type, java.lang.String name, Expression defaultValue)
|
Method Summary | |
---|---|
Expression
|
getInitialExpression()
@return the default value expression for this parameter or null if no default value is specified |
int
|
getModifiers()
|
java.lang.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
|
setModifiers(int modifiers)
|
void
|
setOriginType(ClassNode cn)
|
void
|
setType(ClassNode type)
|
java.lang.String
|
toString()
|
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final Parameter[] EMPTY_ARRAY
Constructor Detail |
---|
public Parameter(ClassNode type, java.lang.String name)
public Parameter(ClassNode type, java.lang.String name, Expression defaultValue)
Method Detail |
---|
public Expression getInitialExpression()
public int getModifiers()
public java.lang.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 java.lang.String toString()
Groovy Documentation