| net.sf.jga.fn.property.GetField
GetField | public class GetField extends UnaryFunctor (Code) | | Unary Functor that returns the value of the named field for the argument.
The field name and type are set at construction.
Copyright © 2002-2005 David A. Hall
author: David A. Hall |
Method Summary | |
public void | accept(net.sf.jga.fn.Visitor v) Calls the Visitor's visit(GetField) field, if it
implements the nested Visitor interface. | public R | fn(T arg) Returns the value of the designated field of the argument
the value of the designated field of the argument throws: EvaluationException - if the argument does not have the designatedpublic field, or if it is not of the correct type. | public synchronized Field | getField() Lazily loads the Field object. | public String | getFieldName() Returns the name of the field that this functor retrieves. | public Class<R> | getFieldType() Returns the type of field that this functor retrieves. | public Class<T> | getObjectType() Returns the class on which the field is retrieved. | public String | toString() |
serialVersionUID | final static long serialVersionUID(Code) | | |
GetField | public GetField(Class<T> argclass, String fieldName)(Code) | | Builds a GetField for the given field, using the given class to
find the desired field.
throws: IllegalArgumentException - if the field name is null or empty, |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(GetField) field, if it
implements the nested Visitor interface.
|
fn | public R fn(T arg)(Code) | | Returns the value of the designated field of the argument
the value of the designated field of the argument throws: EvaluationException - if the argument does not have the designatedpublic field, or if it is not of the correct type. |
getFieldName | public String getFieldName()(Code) | | Returns the name of the field that this functor retrieves.
|
getFieldType | public Class<R> getFieldType()(Code) | | Returns the type of field that this functor retrieves.
|
getObjectType | public Class<T> getObjectType()(Code) | | Returns the class on which the field is retrieved.
|
|
|