org.codehaus.groovy.ast
Class Parameter
java.lang.Object
|
+--org.codehaus.groovy.ast.Parameter
- public class Parameter
- extends Object
Represents a parameter on a constructor or method call. The type name is
optional - it should be defaulted to java.lang.Object if unknown.
- Version:
- $Revision: 1.6 $
- Author:
- James Strachan
Field Summary |
static org.codehaus.groovy.ast.Parameter[] |
EMPTY_ARRAY
|
EMPTY_ARRAY
public static final org.codehaus.groovy.ast.Parameter[] EMPTY_ARRAY
Parameter
public Parameter(String name)
Parameter
public Parameter(String type,
String name)
Parameter
public Parameter(String type,
String name,
org.codehaus.groovy.ast.expr.Expression defaultValue)
toString
public String toString()
- Overrides:
toString
in class Object
getName
public String getName()
getType
public String getType()
setType
public void setType(String type)
isDynamicType
public boolean isDynamicType()
getDefaultValue
public org.codehaus.groovy.ast.expr.Expression getDefaultValue()
- Returns:
- the default value expression for this parameter or null if
no default value is specified
Copyright © 2003 The Codehaus. All Rights Reserved.