|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.expression.language.OwExprReflectiveProperty
public class OwExprReflectiveProperty
Reflective properties are properties that rely on POJOs getters 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 | |
---|---|
OwExprReflectiveProperty(String name_p,
Object javaObject_p,
Method propertyMethod_p)
Constructor |
Method Summary | |
---|---|
OwExprProperty |
at(int index_p)
Indexed scope access method |
OwExprFunction |
function(String functionName_p,
OwExprExpressionType[] argunmentTypes_p)
Function access method. |
boolean |
hasProperty(String propertyName_p)
Property access helper method. |
Class<?> |
javaType()
|
int |
length()
Indexed scope access helper method |
OwExprProperty |
property(String propertyName_p)
Property access method. |
OwExprScope |
solveScope(String name_p)
|
OwExprType |
type()
Performs type conversion using OwExprType.fromJavaType(Object) |
OwExprValue |
value()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwExprReflectiveProperty(String name_p, Object javaObject_p, Method propertyMethod_p)
name_p
- the name of the propertyjavaObject_p
- the underlying POJOpropertyMethod_p
- the getter for this propertyMethod Detail |
---|
public OwExprType type() throws OwExprEvaluationException
OwExprType.fromJavaType(Object)
type
in interface OwExprProperty
OwExprEvaluationException
public final OwExprValue value() throws OwExprEvaluationException
value
in interface OwExprProperty
OwExprEvaluationException
public final OwExprFunction function(String functionName_p, OwExprExpressionType[] argunmentTypes_p) throws OwExprEvaluationException
OwExprScope
function
in interface OwExprScope
functionName_p
- the name of the requested functionargunmentTypes_p
- array of OwExprExpressionType
that defines the argument signature
of the requested function
OwExprFunction
with the requested name and argument signature residing in this scope
OwExprEvaluationException
- if the requested function is not found in this scope or
the creation of the corresponding OwExprFunction
has failedpublic OwExprProperty property(String propertyName_p) throws OwExprEvaluationException
OwExprScope
property
in interface OwExprScope
propertyName_p
- the name of the requested property
OwExprProperty
with the requested name residing in this scope
OwExprEvaluationException
- if the requested property is not found in this scope or
the creation of the corresponding OwExprProperty
has failedpublic OwExprScope solveScope(String name_p) throws OwExprEvaluationException
OwExprEvaluationException
public OwExprProperty at(int index_p) throws OwExprEvaluationException
OwExprScope
at
in interface OwExprScope
index_p
- int
index of the requested property
OwExprProperty
property found at the requested index
OwExprEvaluationException
- if the requested indexed access has failed (index out of bounds,
the creation of OwExprProperty
has failed)public int length() throws OwExprEvaluationException
OwExprScope
length
in interface OwExprScope
OwExprEvaluationException
public boolean hasProperty(String propertyName_p) throws OwExprEvaluationException
OwExprScope
hasProperty
in interface OwExprScope
propertyName_p
- the name of the requested property
true
if this scope can perform property access for the requested property
- an access via OwExprScope.property(String)
will NOT fail on missing property grounds,
false
otherwise
OwExprEvaluationException
- if the property validity check has failedpublic Class<?> javaType() throws OwExprEvaluationException
javaType
in interface OwExprProperty
OwExprEvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |