public abstract class AbstractExprDef extends java.lang.Object implements ExprDef
ExprDef.META, ExprDef.OverrideMode, ExprDef.SourceHintProperty, ExprDef.Visibility
BINDING, GROOVY_MIME_TYPE, JI_MIME_TYPE, mLogger, NASHORN_MIME_TYPE, OVERRIDEMODE_PROPERTY, VISIBILITY_PROPERTY
Constructor and Description |
---|
AbstractExprDef() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCacheKey(java.lang.String exprStr)
The key to be used for caching compiled expression instances.
|
ExprCodeSource |
getCodeSource()
Returns the code source that contains the code for this expression.
|
java.lang.String |
getCodeSourceName()
Returns the CodeSourceName for this expression.
|
abstract java.lang.String |
getContentType()
Concrete implementations need to provide a content type.
|
java.lang.String |
getExpressionClassName()
Returns the name used for the expression class.
|
java.lang.String |
getExprIdentifier()
A unique identfier for the expression.
|
java.lang.String |
getFunctionName()
Return the name of the script function that should be invoked when
evalauting the expression definition.
|
ExprDef.OverrideMode |
getOverrideMode()
The override mode for the expression.
|
OwnerType |
getOwnerType()
Returns the type of object that owners the expression class.
|
java.lang.String |
getPath()
A dot separated path that may be used to lookup the ExprDef
within the ExprDef's owning compnent.
|
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getScriptClassName(java.lang.String exprStr)
Returns the name used for the expression class.
|
java.io.Reader |
getScriptReader() |
abstract java.lang.String |
getScriptText()
Concrete implementations need to provide a script text.
|
java.lang.String |
getTriggerType()
Return the trigger type.
|
ExprEval.TrustMode |
getTrustMode()
The trust mode for the expression.
|
ExprEval.TypeCheckedMode |
getTypeCheckedMode()
Returns whether the expresion should be type checked when type checking
is enabled for the groovy compiler.
|
ExprDef.Visibility |
getVisibility()
The visibility of the expression.
|
boolean |
hasReturn()
If the expression has a return value.
|
boolean |
isOperationsExpression()
If the expression defines operations.
|
boolean |
isResolved() |
boolean |
supportsAnnotation()
Indicates whether ADF can use an expression annotation to select
the expression method for invocation.
|
public java.lang.String getPath()
ExprDef
ComponentOperationsManager#findExprDef
.public ExprEval.TrustMode getTrustMode()
ExprDef
getTrustMode
in interface ExprDef
public ExprDef.OverrideMode getOverrideMode()
ExprDef
public ExprDef.Visibility getVisibility()
ExprDef
public boolean hasReturn()
ExprDef
public java.lang.String getExprIdentifier()
ExprDef
getExprIdentifier
in interface ExprDef
public java.lang.Object getCacheKey(java.lang.String exprStr)
ExprDef
getCacheKey
in interface ExprDef
public boolean isOperationsExpression()
ExprDef
isOperationsExpression
in interface ExprDef
public java.lang.String getScriptClassName(java.lang.String exprStr)
ExprDef
getScriptClassName
in interface ExprDef
public java.lang.String getExpressionClassName()
ExprDef
getExpressionClassName
in interface ExprDef
public ExprEval.TypeCheckedMode getTypeCheckedMode()
ExprDef
getTypeCheckedMode
in interface ExprDef
public OwnerType getOwnerType()
ExprDef
getOwnerType
in interface ExprDef
public ExprCodeSource getCodeSource()
ExprDef
public java.lang.String getCodeSourceName()
ExprDef
public java.lang.String getTriggerType()
ExprDef
getTriggerType
in interface ExprDef
public boolean supportsAnnotation()
ExprDef
supportsAnnotation
in interface ExprDef
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface ExprDef
public java.io.Reader getScriptReader()
public java.lang.String getFunctionName()
ExprDef
public boolean isResolved()
public abstract java.lang.String getScriptText()
public abstract java.lang.String getContentType()