com.caucho.quercus.program
Class Arg

java.lang.Object
  extended by com.caucho.quercus.program.Arg

public class Arg
extends java.lang.Object

Represents a formal argument.


Constructor Summary
Arg(java.lang.String name, Expr defaultExpr, boolean isReference, java.lang.String expectedClass)
           
 
Method Summary
 Expr getDefault()
          Returns the default expression
 java.lang.String getExpectedClass()
          Returns the expected classname
 StringValue getName()
          Returns the argument name.
 boolean isReference()
          Returns true for a reference argument.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Arg

public Arg(java.lang.String name,
           Expr defaultExpr,
           boolean isReference,
           java.lang.String expectedClass)
Method Detail

getName

public StringValue getName()
Returns the argument name.


getDefault

public Expr getDefault()
Returns the default expression


isReference

public boolean isReference()
Returns true for a reference argument.


getExpectedClass

public java.lang.String getExpectedClass()
Returns the expected classname


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object