public class ExpressionValue extends ComplexValue
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionValue.Type
Type of the contained expression.
|
Modifier and Type | Field and Description |
---|---|
protected Constructor<?> |
compiledConstructor |
protected Expression |
compiledExpression
Compiled expression.
|
modelInstance
Modifier | Constructor and Description |
---|---|
protected |
ExpressionValue()
Creates new instance of
ExpressionValue . |
|
ExpressionValue(long id,
ModelInstance modelInstance,
String type,
long contextId,
String expression,
Expression compiledExpression,
ExpressionValue.Type expressionType,
ClosureOrigin origin)
Creates new instance of
ExpressionValue . |
|
ExpressionValue(long id,
ModelInstance modelInstance,
String type,
long contextId,
String expression,
Expression compiledExpression,
ExpressionValue.Type expressionType,
String level,
Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId,
ClosureOrigin origin)
Creates new instance of
ExpressionValue . |
|
ExpressionValue(long id,
ModelInstance modelInstance,
String type,
long contextId,
String expression,
Expression compiledExpression,
ExpressionValue.Type expressionType,
String level,
Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId,
List<PropertyValue> properties,
ClosureOrigin origin)
Creates new instance of
ExpressionValue . |
|
ExpressionValue(ModelInstance modelInstance,
String type,
long contextId,
ReferenceExpression expression,
List<PropertyValue> properties,
ClosureOrigin origin)
Creates new instance of
ExpressionValue . |
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
Expression |
getCachedCompiledExpression()
Returns the cached compiled expression.
|
String |
getCompiled()
Name of the class that represents expression compiled to java.
|
Constructor<?> |
getCompiledConstructor() |
Expression |
getCompiledExpression(ModelProviderClientService modelProviderService)
Returns the compiled expression.
|
Context |
getContext()
Returns the enclosing context.
|
long |
getContextId()
Returns the enclosing context id.
|
Integer |
getDebugLine()
Returns debug type.
|
String |
getExpression()
Returns the expression.
|
ClosureOrigin |
getExpressionOrigin()
Returns the expression origin.
|
ExpressionValue.Type |
getExpressionType()
Returns the expression type.
|
List<PropertyValue> |
getProperties()
Returns all additional properties.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
ExpressionValue |
makeCopy(ModelInstance targetModelInstance)
Creates copy of the value in the target model instance.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
replaceReferencedIds(Map<Long,Long> replacementMap)
Replace referenced ids according to mappings in the replacement map.
|
void |
setCompiled(String compiled)
Sets name of the class that represents expression compiled to java.
|
void |
setContextId(long contextId)
Sets context id.
|
String |
toString() |
clear, collect, commonAfterUnmarshal, createContext, findReplacementId, getBaseLevelEntity, getBaseLevelEntityId, getCompiledType, getEvaluationLevel, getHandle, getId, getLowerLevelEntity, getLowerLevelEntityId, getLowestLevelEntity, getLowestLevelEntityId, getModelInstance, getOwnContext, getType, internalVersionConflictMessage, isInternalyVersioned, isLocked, isLowestExistingEntity, isPersistent, isRemoved, rebind, replaceIdAndEvaluationLevel, setLowerLevelEntityId, setPersistent, toSimpleValue, toValue, updateLevelData
protected Expression compiledExpression
protected Constructor<?> compiledConstructor
protected ExpressionValue()
ExpressionValue
.public ExpressionValue(long id, ModelInstance modelInstance, String type, long contextId, String expression, Expression compiledExpression, ExpressionValue.Type expressionType, String level, Long baseLevelValueId, Long lowestLevelValueId, Long lowerLevelValueId, ClosureOrigin origin)
ExpressionValue
.id
- modelInstance
- type
- contextId
- expression
- compiledExpression
- expressionType
- level
- baseLevelValueId
- lowestLevelValueId
- lowerLevelValueId
- origin
- the expression originNullPointerException
- if modelInstance
or type
or context
or expression
or expressionType
is nullpublic ExpressionValue(long id, ModelInstance modelInstance, String type, long contextId, String expression, Expression compiledExpression, ExpressionValue.Type expressionType, ClosureOrigin origin)
ExpressionValue
.id
- modelInstance
- type
- contextId
- expression
- compiledExpression
- expressionType
- origin
- the expression originNullPointerException
- if modelInstance
or type
or context
or expression
or expressionType
is nullpublic ExpressionValue(ModelInstance modelInstance, String type, long contextId, ReferenceExpression expression, List<PropertyValue> properties, ClosureOrigin origin)
ExpressionValue
.modelInstance
- type
- contextId
- expression
- properties
- origin
- the expression originNullPointerException
- if type
of context
of expression
or
is nullpublic ExpressionValue(long id, ModelInstance modelInstance, String type, long contextId, String expression, Expression compiledExpression, ExpressionValue.Type expressionType, String level, Long baseLevelValueId, Long lowestLevelValueId, Long lowerLevelValueId, List<PropertyValue> properties, ClosureOrigin origin)
ExpressionValue
.id
- modelInstance
- type
- contextId
- expression
- compiledExpression
- expressionType
- level
- baseLevelValueId
- lowestLevelValueId
- lowerLevelValueId
- properties
- origin
- the expression originpublic <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Value
E
E extends Throwable
public String getExpression()
public Context getContext()
public long getContextId()
public void setContextId(long contextId)
contextId
- public ExpressionValue.Type getExpressionType()
public Expression getCompiledExpression(ModelProviderClientService modelProviderService)
modelProviderService
- public Expression getCachedCompiledExpression()
null
if the
expression is not compiled.null
public List<PropertyValue> getProperties()
public ClosureOrigin getExpressionOrigin()
public Integer getDebugLine()
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
parent
- instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public Collection<Collectible> getReferences()
Collectible
public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValue
replaceReferencedIds
in interface EvaluationLevelAware
replaceReferencedIds
in class ComplexValue
public ExpressionValue makeCopy(ModelInstance targetModelInstance)
Value
public String getCompiled()
public void setCompiled(String compiled)
compiled
- public Constructor<?> getCompiledConstructor()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.