net.sf.jga.fn.property

Class SetPropertyFn<T,R>

public class SetPropertyFn<T,R> extends SetProperty<T,R>

Deprecated:

Deprecated name: use SetProperty instead.

Copyright © 2002 David A. Hall

Author: David A. Hall

Nested Class Summary
interfaceSetPropertyFn.Visitor
Interface for classes that may interpret a SetPropertyFn function.
Constructor Summary
SetPropertyFn(String propName, Class propType)
Builds a SetPropertyFn for the given property, which must be of the given class.
Method Summary
voidaccept(Visitor v)
Calls the Visitor's visit(SetPropertyFn) method, if it implements the nested Visitor interface.

Constructor Detail

SetPropertyFn

public SetPropertyFn(String propName, Class propType)
Builds a SetPropertyFn for the given property, which must be of the given class. The class argument must be the same as the generic class argument (when generics are in use) or else a ClassCastException will be thrown when the functor is used.

Throws: IllegalArgumentException if either argument is omitted.

Method Detail

accept

public void accept(Visitor v)
Calls the Visitor's visit(SetPropertyFn) method, if it implements the nested Visitor interface.