|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.expression.language.OwExprValue
com.wewebu.expression.language.OwExprScopeValue
public class OwExprScopeValue
Scope values represent values obtained during evaluation that need to be queried for
properties or functions.
Example:
employee.birthDate.year
The employee.birthDate sub-expression will be evaluated to a OwExprScopeValue
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 | |
|---|---|
OwExprScopeValue(OwExprScope scope_p)
Constructor |
|
| Method Summary | |
|---|---|
OwExprValue |
accept(OwExprBinaryOperator binaryOperator_p,
OwExprScopeValue v1_p)
Stage 2 binary operator visitor acceptance method |
OwExprValue |
accept(OwExprBinaryOperator binaryOperator_p,
OwExprValue v2_p)
Stage 1 binary operator visitor acceptance method |
OwExprProperty |
at(int index_p)
Indexed access delegate. Delegates to m_scope. |
OwExprFunction |
function(String functionName_p,
OwExprExpressionType[] argunmentTypes_p)
Scope OwExprScope.function(String, OwExprExpressionType[]) default implementation. |
OwExprScope |
getScope()
|
protected Map |
getValuePropeties()
Overridable default value properties factory method |
boolean |
hasProperty(String propertyName_p)
Scope OwExprScope.hasProperty(String) default implementation. |
int |
length()
Indexed access delegate. Delegates to m_scope. |
OwExprProperty |
property(String propertyName_p)
Scope OwExprScope.property(String) default implementation. |
OwExprScope |
solveScope(String name_p)
|
Object |
toJavaObject(Class javaSuperType_p)
Java class conversion method. |
String |
toString()
|
| Methods inherited from class com.wewebu.expression.language.OwExprValue |
|---|
accept, accept, accept, accept, accept, accept, fromJavaValue, fromJavaValue, getJavaType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OwExprScopeValue(OwExprScope scope_p)
scope_p - the scope represented by this value| Method Detail |
|---|
protected Map getValuePropeties()
OwExprValue
getValuePropeties in class OwExprValueMap of OwExprProperty for this value
public OwExprValue accept(OwExprBinaryOperator binaryOperator_p,
OwExprValue v2_p)
throws OwExprEvaluationException
OwExprValue
accept in class OwExprValuebinaryOperator_p - binary operator visitorv2_p - right side operator value
OwExprValue
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)
public OwExprValue accept(OwExprBinaryOperator binaryOperator_p,
OwExprScopeValue v1_p)
throws OwExprEvaluationException
OwExprValue
accept in class OwExprValuebinaryOperator_p - binary operator visitorv1_p - lef side operator value
OwExprValue
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)
public Object toJavaObject(Class javaSuperType_p)
throws OwExprEvaluationException
OwExprValue
toJavaObject in class OwExprValuejavaSuperType_p - the requested java super type
The returned type should be a subclass of this type.
This is necessary for values having more than one possible java peers
such as OwExprNumericValue's Integer and Double support.
OwExprEvaluationException
public final OwExprScope solveScope(String name_p)
throws OwExprEvaluationException
OwExprEvaluationException
public final OwExprFunction function(String functionName_p,
OwExprExpressionType[] argunmentTypes_p)
throws OwExprEvaluationException
OwExprValueOwExprScope.function(String, OwExprExpressionType[]) default implementation.
By default value-scopes have no functions defined
function in interface OwExprScopefunction in class OwExprValuefunctionName_p - the requested function nameargunmentTypes_p - array of OwExprExpressionType that defines the argument signature
of the requested function
OwExprProperty designated by propertyName_p and found in this value's scope
OwExprEvaluationException - if the requested property is not found in this scope or
the creation of the corresponding OwExprProperty has failed
public final OwExprProperty property(String propertyName_p)
throws OwExprEvaluationException
OwExprValueOwExprScope.property(String) default implementation.
A default value properties mechanism is implemented.
Concrete values must create properties via OwExprValue.getValuePropeties().
property in interface OwExprScopeproperty in class OwExprValuepropertyName_p - the requested property name
OwExprProperty designated by propertyName_p and found in this value's scope
OwExprEvaluationException - if the requested property is not found in this scope or
the creation of the corresponding OwExprProperty has failed
public OwExprProperty at(int index_p)
throws OwExprEvaluationException
m_scope.
at in interface OwExprScopeat in class OwExprValueindex_p -
OwExprProperty property found at the requested index
OwExprEvaluationException
public int length()
throws OwExprEvaluationException
m_scope.
length in interface OwExprScopelength in class OwExprValueOwExprEvaluationExceptionpublic final OwExprScope getScope()
public boolean hasProperty(String propertyName_p)
throws OwExprEvaluationException
OwExprValueOwExprScope.hasProperty(String) default implementation.
A default value properties mechanism is implemented.
Concrete values must create properties via OwExprValue.getValuePropeties().
hasProperty in interface OwExprScopehasProperty in class OwExprValuepropertyName_p -
OwExprEvaluationExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||