info.javelot.functionalj.reflect
Class Parameter

java.lang.Object
  extended by info.javelot.functionalj.reflect.Parameter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NullParameter, PrimitiveParameter

public abstract class Parameter
extends Object
implements Serializable

Abstract parent class used to indicate a special parameter, for example a null parameter (NullParameter) or a parameter of a primitive type (PrimitiveParameter).

Author:
Copyright © 2006 Frederic Daoud
See Also:
Serialized Form

Constructor Summary
Parameter(Class p_parameterClass, Object p_value)
          Constructs an object which indicates to use a specific class for a parameter value.
 
Method Summary
 Class getParameterClass()
          Returns the class of the parameter.
 Object getValue()
          Returns the value of the parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(Class p_parameterClass,
                 Object p_value)
Constructs an object which indicates to use a specific class for a parameter value.

Parameters:
p_parameterClass - the class of the parameter.
p_value - the value of the parameter.
Throws:
FunctionException - thrown if the specified parameter class is null.
Method Detail

getParameterClass

public Class getParameterClass()
Returns the class of the parameter.

Returns:
the class of the parameter.

getValue

public Object getValue()
Returns the value of the parameter.

Returns:
the value of the parameter.