@Exported public abstract class AbstractExprDef extends java.lang.Object implements ExprDef
ExprDef.META, ExprDef.SourceHintPropertyExprDef.OverrideMode, ExprDef.VisibilityBINDING, GROOVY_MIME_TYPE, JI_MIME_TYPE, mLogger, NASHORN_MIME_TYPE, UNKNOWN_FILE_NAMEOVERRIDEMODE_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()
ExprDefgetExpressionSource in interface ExprDef@Concealed public int calculateOffset()
ExprDef@Concealed public java.lang.String getPath()
ExprDefComponentOperationsManager#findExprDef.@Concealed public ExprEval.TrustMode getTrustMode()
ExprDefgetTrustMode in interface ExprDef@Concealed public ExprEval.TrustMode getTrustMode(java.lang.String functionName)
public ExprDef.OverrideMode getOverrideMode()
ExprDefgetOverrideMode in interface ExprDefpublic ExprDef.Visibility getVisibility()
ExprDefgetVisibility in interface ExprDefpublic boolean hasReturn()
ExprDefpublic java.lang.String getExprIdentifier()
ExprDefgetExprIdentifier in interface ExprDefpublic java.lang.Object getCacheKey(java.lang.String exprStr)
ExprDefgetCacheKey in interface ExprDefpublic boolean isOperationsExpression()
ExprDefisOperationsExpression in interface ExprDefpublic java.lang.String getScriptClassName(java.lang.String exprStr)
ExprDefgetScriptClassName in interface ExprDefpublic java.lang.String getExpressionClassName()
ExprDefgetExpressionClassName in interface ExprDefpublic ExprEval.TypeCheckedMode getTypeCheckedMode()
ExprDefgetTypeCheckedMode in interface ExprDefpublic OwnerType getOwnerType()
ExprDefgetOwnerType in interface ExprDefpublic ExprCodeSource getCodeSource()
ExprDefpublic java.lang.String getCodeSourceName()
ExprDefpublic java.lang.String getTriggerType()
ExprDefgetTriggerType in interface ExprDefpublic boolean supportsAnnotation()
ExprDefsupportsAnnotation in interface ExprDefpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface ExprDefpublic java.io.Reader getScriptReader()
public java.lang.String getFunctionName()
ExprDefpublic 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()