| net.sf.jga.fn.adaptor.Constant
Constant | public class Constant extends Generator (Code) | | Functor that returns the constant value given at construction.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | Constant(V val) Builds a Constant functor for the given value. |
serialVersionUID | final static long serialVersionUID(Code) | | |
Constant | public Constant(V val)(Code) | | Builds a Constant functor for the given value. The value may be null:
in that case, evaluating the functor will return null.
|
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Constant) method, if it
implements the nested Visitor interface.
|
gen | public V gen()(Code) | | Returns the constant value given at construction
the constant value given at construction |
|
|