public abstract static class Expression.Application extends Expression.Base
Expression.Application, Expression.Base, Expression.BoolConstant, Expression.Constant, Expression.Fixed, Expression.Util, Expression.Valof, Expression.Variable
FALSE, TRUE
Constructor and Description |
---|
Expression.Application() |
Modifier and Type | Method and Description |
---|---|
abstract int |
argCount()
If this Expression is an application, answer the number of arguments that
it has.
|
abstract Expression |
getArg(int i)
If this Expression is an application, and 0 <= i < argCount(), answer the
i th argument. |
abstract String |
getFun()
If this Expression is an application, return the string identifying the function,
which should be a URI.
|
boolean |
isApply()
Answer true iff this Expression represents the application of some function
[or operator] to some arguments [or operands].
|
equals, getName, getValue, isConstant, isVariable
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
public boolean isApply()
Expression
isApply
in interface Expression
isApply
in class Expression.Base
public abstract int argCount()
Expression
argCount
in interface Expression
argCount
in class Expression.Base
public abstract String getFun()
Expression
getFun
in interface Expression
getFun
in class Expression.Base
public abstract Expression getArg(int i)
Expression
i
th argument. Otherwise the behaviour is unspecified.getArg
in interface Expression
getArg
in class Expression.Base
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP