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