public abstract static class Expression.Base extends Object implements Expression
Expression.Application, Expression.Base, Expression.BoolConstant, Expression.Constant, Expression.Fixed, Expression.Util, Expression.Valof, Expression.VariableFALSE, TRUE| Constructor and Description |
|---|
Expression.Base() |
| Modifier and Type | Method and Description |
|---|---|
int |
argCount()
If this Expression is an application, answer the number of arguments that
it has.
|
boolean |
equals(Object other) |
Expression |
getArg(int i)
If this Expression is an application, and 0 <= i < argCount(), answer the
ith argument. |
String |
getFun()
If this Expression is an application, return the string identifying the function,
which should be a URI.
|
String |
getName()
If this Expression is a variable, answer a [non-null] String which is its name.
|
Object |
getValue()
If this Expression is a literal, answer the value of that literal.
|
boolean |
isApply()
Answer true iff this Expression represents the application of some function
[or operator] to some arguments [or operands].
|
boolean |
isConstant()
Answer true iff this Expression represents a literal [Java object] value.
|
boolean |
isVariable()
Answer true iff this Expression represents a variable.
|
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreparepublic boolean isVariable()
ExpressionisVariable in interface Expressionpublic boolean isApply()
ExpressionisApply in interface Expressionpublic boolean isConstant()
ExpressionisConstant in interface Expressionpublic String getName()
ExpressiongetName in interface Expressionpublic Object getValue()
ExpressiongetValue in interface Expressionpublic int argCount()
ExpressionargCount in interface Expressionpublic String getFun()
ExpressiongetFun in interface Expressionpublic Expression getArg(int i)
Expressionith argument. Otherwise the behaviour is unspecified.getArg in interface ExpressionLicenced under the Apache License, Version 2.0