com.wewebu.expression.language
Class OwExprReflectiveFunction

java.lang.Object
  extended by com.wewebu.expression.language.OwExprReflectiveFunction
All Implemented Interfaces:
OwExprFunction

public class OwExprReflectiveFunction
extends Object
implements OwExprFunction

Reflective functions are properties that rely on POJOs methods to return values.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Constructor Summary
OwExprReflectiveFunction(Object javaObject_p, Method functionMethod_p)
          Constructor
 
Method Summary
 OwExprType type()
           
 OwExprValue value(OwExprValue[] arguments_p)
          Evaluation method for this function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwExprReflectiveFunction

public OwExprReflectiveFunction(Object javaObject_p,
                                Method functionMethod_p)
Constructor

Parameters:
javaObject_p - the underlying POJO
functionMethod_p - the method for this function
Method Detail

value

public OwExprValue value(OwExprValue[] arguments_p)
                  throws OwExprEvaluationException
Description copied from interface: OwExprFunction
Evaluation method for this function.

Specified by:
value in interface OwExprFunction
Returns:
the value returned when this function is evaluated basted on the given arguments
Throws:
OwExprEvaluationException

type

public OwExprType type()
                throws OwExprEvaluationException
Specified by:
type in interface OwExprFunction
Returns:
the OwExprType that this function will return upon evaluation.
Throws:
OwExprEvaluationException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.