Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.1)

E67681-01


oracle.jbo.common
Class DefaultExprDef

java.lang.Object
  extended by oracle.jbo.common.DefaultExprDef

All Implemented Interfaces:
ExprDef

public abstract class DefaultExprDef
extends java.lang.Object
implements ExprDef

An abstract implementation of an ExprDef. The DefaultExprDef adapts a general GroovyCodeSource for use with the ADF groovy compiler/evaluator. Libraries that do not define a proper ADF ExprDef implementation may create a DefaultExprDef to use the ADF groovy compiler/evaluate. The DefaultExprDef provides default implementations of many of the ADF ExprDef APIs that may not be appropriate for more general purpose groovy evaluation.


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.jbo.ExprDef
ExprDef.OverrideMode, ExprDef.Visibility

 

Field Summary

 

Fields inherited from interface oracle.jbo.ExprDef
mLogger, OVERRIDEMODE_PROPERTY, VISIBILITY_PROPERTY

 

Constructor Summary
DefaultExprDef()
           

 

Method Summary
 java.lang.String getCacheKey(java.lang.String exprStr)
          The key to be used for caching compiled expression instances.
 java.lang.String getExpressionSource()
          The source string of the expression.
 java.lang.String getExprIdentifier()
          A unique identfier for the expression.
 ExprDef.OverrideMode getOverrideMode()
          The override mode for the expression.
 OwnerType getOwnerType()
          Returns the type of object that owners the expression class.
 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.jbo.ExprDef
getScriptClassName

 

Constructor Detail

DefaultExprDef

public DefaultExprDef()

Method Detail

getExpressionSource

public java.lang.String getExpressionSource()
Description copied from interface: ExprDef
The source string of the expression.
Specified by:
getExpressionSource in interface ExprDef

getTrustMode

public ExprEval.TrustMode getTrustMode()
Description copied from interface: ExprDef
The trust mode for the expression.
Specified by:
getTrustMode in interface ExprDef

getOverrideMode

public ExprDef.OverrideMode getOverrideMode()
Description copied from interface: ExprDef
The override mode for the expression.
Specified by:
getOverrideMode in interface ExprDef

getVisibility

public ExprDef.Visibility getVisibility()
Description copied from interface: ExprDef
The visibility of the expression.
Specified by:
getVisibility in interface ExprDef

hasReturn

public boolean hasReturn()
Description copied from interface: ExprDef
If the expression has a return value.
Specified by:
hasReturn in interface ExprDef

getExprIdentifier

public java.lang.String getExprIdentifier()
Description copied from interface: ExprDef
A unique identfier for the expression.
Specified by:
getExprIdentifier in interface ExprDef

getCacheKey

public java.lang.String getCacheKey(java.lang.String exprStr)
Description copied from interface: ExprDef
The key to be used for caching compiled expression instances.
Specified by:
getCacheKey in interface ExprDef
Returns:
a cacheKey. If null then the compiled expression will not be cached.

isOperationsExpression

public boolean isOperationsExpression()
Description copied from interface: ExprDef
If the expression defines operations.
Specified by:
isOperationsExpression in interface ExprDef

getTypeCheckedMode

public ExprEval.TypeCheckedMode getTypeCheckedMode()
Description copied from interface: ExprDef
Returns whether the expresion should be type checked when type checking is enabled for the groovy compiler.
Specified by:
getTypeCheckedMode in interface ExprDef
Returns:
ExprEval.TypeCheckedMode.always if the expr should always be type checked ExprEval.TypeCheckedMode.never if the expr should never be typ checked ExprEval.TypeCheckedMode.defer if type checking is dependent upon the application configuration

getOwnerType

public OwnerType getOwnerType()
Description copied from interface: ExprDef
Returns the type of object that owners the expression class.
Specified by:
getOwnerType in interface ExprDef

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.1)

E67681-01


Copyright © 1997, 2016, Oracle. All rights reserved.