public class Arg
extends java.lang.Object
Constructor and Description |
---|
Arg(StringValue name,
Expr defaultExpr,
boolean isReference,
java.lang.String expectedClass) |
Modifier and Type | Method and Description |
---|---|
Value |
eval(Env env)
Evaluates the default expr.
|
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.
|
boolean |
isRequired()
Returns true if the argument is required.
|
java.lang.String |
toString() |
public Arg(StringValue name, Expr defaultExpr, boolean isReference, java.lang.String expectedClass)
public StringValue getName()
public Expr getDefault()
public boolean isReference()
public boolean isRequired()
public java.lang.String getExpectedClass()
public java.lang.String toString()
toString
in class java.lang.Object