gnu.kawa.functions

Class ConstantFunction0

Implemented Interfaces:
CanInline, Named

public class ConstantFunction0
extends Procedure0
implements CanInline

A 0-argument function that returns a constant value. Used for false() and true() in XQuery.

Constructor Summary

ConstantFunction0(String name, Object value)

Method Summary

Object
apply0()
Expression
inline(ApplyExp exp, ExpWalker walker)

Methods inherited from class gnu.mapping.Procedure0

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Constructor Details

ConstantFunction0

public ConstantFunction0(String name,
                         Object value)

Method Details

apply0

public Object apply0()
Overrides:
apply0 in interface Procedure0

inline

public Expression inline(ApplyExp exp,
                         ExpWalker walker)
Specified by:
inline in interface CanInline