@Exported public abstract class AbstractExprDef extends java.lang.Object implements ExprDef
ExprDef.META, ExprDef.SourceHintProperty
ExprDef.OverrideMode, ExprDef.Visibility
BINDING, GROOVY_MIME_TYPE, JI_MIME_TYPE, mLogger, NASHORN_MIME_TYPE, UNKNOWN_FILE_NAME
OVERRIDEMODE_PROPERTY, VISIBILITY_PROPERTY
Constructor and Description |
---|
AbstractExprDef() |
Modifier and Type | Method and Description |
---|---|
int |
calculateOffset()
The expression's "offset" within a CodeSource.
|
java.lang.Object |
getCacheKey(java.lang.String exprStr)
The key to be used for caching compiled expression instances.
|
java.util.Map<java.lang.String,byte[]> |
getClassData(java.lang.String name) |
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.
|
int |
getDefScope() |
java.lang.String |
getExpressionClassName()
Returns the name used for the expression class.
|
java.lang.String |
getExpressionSource()
The source string of the expression.
|
static java.lang.String |
getExpressionSource(ExprDef exprDef) |
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.TrustMode |
getTrustMode(java.lang.String functionName) |
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 |
isDynamicCodeSourceEnabled() |
boolean |
isOperationsExpression()
If the expression defines operations.
|
void |
storeClassData(java.lang.String name,
byte[] classData) |
boolean |
supportsAnnotation()
Indicates whether ADF can use an expression annotation to select
the expression method for invocation.
|
public java.lang.String getExpressionSource()
ExprDef
getExpressionSource
in interface ExprDef
@Concealed public int calculateOffset()
ExprDef
@Concealed public java.lang.String getPath()
ExprDef
ComponentOperationsManager#findExprDef
.@Concealed public ExprEval.TrustMode getTrustMode()
ExprDef
getTrustMode
in interface ExprDef
@Concealed public ExprEval.TrustMode getTrustMode(java.lang.String functionName)
public ExprDef.OverrideMode getOverrideMode()
ExprDef
getOverrideMode
in interface ExprDef
public ExprDef.Visibility getVisibility()
ExprDef
getVisibility
in interface 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 abstract java.lang.String getScriptText()
public abstract java.lang.String getContentType()
public static java.lang.String getExpressionSource(ExprDef exprDef)
@Concealed public int getDefScope()
public java.util.Map<java.lang.String,byte[]> getClassData(java.lang.String name)
public void storeClassData(java.lang.String name, byte[] classData)
public boolean isDynamicCodeSourceEnabled()