gnu.xquery.util
Class BooleanValue
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.Procedure1
gnu.xquery.util.BooleanValue
- All Implemented Interfaces:
- CanInline, Named
public class BooleanValue
- extends Procedure1
- implements CanInline
Method Summary |
java.lang.Object |
apply1(java.lang.Object arg)
|
static boolean |
booleanValue(java.lang.Object value)
|
Expression |
inline(ApplyExp exp,
InlineCalls walker,
boolean argsInlined)
Inline an application of this Procedure and return result. |
static boolean |
not(java.lang.Object value)
|
Methods inherited from class gnu.mapping.Procedure |
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
booleanValue
public static final BooleanValue booleanValue
BooleanValue
public BooleanValue(java.lang.String name)
booleanValue
public static boolean booleanValue(java.lang.Object value)
not
public static boolean not(java.lang.Object value)
apply1
public java.lang.Object apply1(java.lang.Object arg)
- Specified by:
apply1
in class Procedure1
inline
public Expression inline(ApplyExp exp,
InlineCalls walker,
boolean argsInlined)
- Description copied from interface:
CanInline
- Inline an application of this Procedure and return result.
Unless
argsInlined
is true, then this method
is responsible for walking exp.getArgs()
;
you can handle this using exp.getArgs(walker, argsInlined)
.
(The exp.getFunction()
has been walked, regardless.)
- Specified by:
inline
in interface CanInline
argsInlined
- true if the arguments have been inlined.
Can return original expression.