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
           
 
Constructor Summary
Parameter(String name)
           
Parameter(String type, String name)
           
Parameter(String type, String name, org.codehaus.groovy.ast.expr.Expression defaultValue)
           
 
Method Summary
 org.codehaus.groovy.ast.expr.Expression getDefaultValue()
           
 String getName()
           
 String getType()
           
 boolean isDynamicType()
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final org.codehaus.groovy.ast.Parameter[] EMPTY_ARRAY
Constructor Detail

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)
Method Detail

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.