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.server
Class EvaluateExprCompileContextImpl

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Binding
          extended by oracle.jbo.AbstractCompileContext
              extended by oracle.jbo.server.EvaluateExprCompileContextImpl

All Implemented Interfaces:
groovy.lang.GroovyObject, ExprCompileContext

public class EvaluateExprCompileContextImpl
extends AbstractCompileContext

A compile context that may be used during expression evaluation.

Since:
release specific (what release of product did this appear in)
For internal use only. Application developers should not use this

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.jbo.AbstractCompileContext
AbstractCompileContext.UntypedExtendedType

 

Field Summary

 

Fields inherited from class oracle.jbo.AbstractCompileContext
mExtendedType

 

Fields inherited from interface oracle.jbo.ExprCompileContext
GLOBAL_RECEIVER_NAME, UNKNOWN_PARAMETER_TYPE_NAME, VOID_RETURN_TYPE

 

Constructor Summary
EvaluateExprCompileContextImpl(ExprDef exprDef, java.lang.Object source, ExprValueTypeSupplier valSupplier, ExprTrustSupplier exprTrustSupplier)
           

 

Method Summary
protected  ExprCompileContext createExtendedType(StructureDefinition structureDefinition)
          Creates a new compile context for the specified structureDefinition.
 ExprDef getExprDef()
          Return the definition of the expressio that is compiling.
 ExprTrustSupplier getExprTrustSupplier()
          Return the security policiy that is associated with this context.
 java.lang.String getGlobalOperationReturnType(java.lang.String name, java.lang.String... argtypes)
          Return the type of the given global operations.
 java.lang.String getMethodReturnType(java.lang.String receiver, java.lang.String name, java.lang.String[] argtypes, java.lang.String[] argvals)
          Return the return type of the given method.
 java.lang.String getNewValueType()
          In validator contexts this returns the type of the new attribute or row.
 java.lang.String getOldValueType()
          In validator contexts this returns the type of the new attribute or row.
 StructureDefinition getStructureDefinition()
          Return the oracle.binding.meta.StructureDefnition of the compile context.
 boolean isCodeSource()
           
 boolean isTypeChecked()
          Returns whether type checking should be performed in this compile context.

 

Methods inherited from class oracle.jbo.AbstractCompileContext
classesFor, classFor, createUntypedExtendedType, getCurrentASTNode, getCurrentNode, getErrorCollector, getExtendedType, getPropertyType, getReturnType, getReturnType, getSourceAttributeType, getSourceMethodReturnType, getSourceOperationReturnType, getSourcePropertyType, getSourceType, getVariableType, isAssignableFrom, isMandatoryAttribute, isRowAttribute, operationMatches, setCurrentASTNode, setCurrentNode, setErrorCollector, setTypeCheckerClassLoader

 

Methods inherited from class groovy.lang.Binding
getProperty, getVariable, getVariables, hasVariable, setProperty, setVariable

 

Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass

 

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

 

Constructor Detail

EvaluateExprCompileContextImpl

public EvaluateExprCompileContextImpl(ExprDef exprDef,
                                      java.lang.Object source,
                                      ExprValueTypeSupplier valSupplier,
                                      ExprTrustSupplier exprTrustSupplier)

Method Detail

getExprDef

public ExprDef getExprDef()
Description copied from interface: ExprCompileContext
Return the definition of the expressio that is compiling.
Specified by:
getExprDef in interface ExprCompileContext
Specified by:
getExprDef in class AbstractCompileContext

getStructureDefinition

public StructureDefinition getStructureDefinition()
Description copied from interface: ExprCompileContext
Return the oracle.binding.meta.StructureDefnition of the compile context. For example, when compiling an entity validation rule this should return the StructureDefinition of the entity.
Specified by:
getStructureDefinition in interface ExprCompileContext
Overrides:
getStructureDefinition in class AbstractCompileContext

isTypeChecked

public boolean isTypeChecked()
Description copied from interface: ExprCompileContext
Returns whether type checking should be performed in this compile context.
Specified by:
isTypeChecked in interface ExprCompileContext
Overrides:
isTypeChecked in class AbstractCompileContext

isCodeSource

public boolean isCodeSource()

getMethodReturnType

public java.lang.String getMethodReturnType(java.lang.String receiver,
                                            java.lang.String name,
                                            java.lang.String[] argtypes,
                                            java.lang.String[] argvals)
Description copied from interface: ExprCompileContext
Return the return type of the given method.

Invoked by the type checker if it cannot resolve the specified method.

Specified by:
getMethodReturnType in interface ExprCompileContext
Overrides:
getMethodReturnType in class AbstractCompileContext

getGlobalOperationReturnType

public java.lang.String getGlobalOperationReturnType(java.lang.String name,
                                                     java.lang.String... argtypes)
Description copied from interface: ExprCompileContext
Return the type of the given global operations.
Specified by:
getGlobalOperationReturnType in interface ExprCompileContext
Specified by:
getGlobalOperationReturnType in class AbstractCompileContext

createExtendedType

protected ExprCompileContext createExtendedType(StructureDefinition structureDefinition)
Description copied from class: AbstractCompileContext
Creates a new compile context for the specified structureDefinition. The extended type will be stored by the type checker and used to resolve properties or methods of nested AST nodes. For example, assume an emp context and the expression 'dept.deptno'. The compiler will inovke createExtendedType to create an extended type with dept structure for the 'dept' expression. The extended type compile context will be stored and used later to check the deptno property of the 'dept' expression.
Overrides:
createExtendedType in class AbstractCompileContext
Returns:
a compile context. The abstract compile context will return a "default" compile context for the specified structure. A concrete compile context may override this to return a compile context of the concrete type.

getNewValueType

public java.lang.String getNewValueType()
Description copied from class: AbstractCompileContext
In validator contexts this returns the type of the new attribute or row.
Overrides:
getNewValueType in class AbstractCompileContext

getOldValueType

public java.lang.String getOldValueType()
Description copied from class: AbstractCompileContext
In validator contexts this returns the type of the new attribute or row.
Overrides:
getOldValueType in class AbstractCompileContext

getExprTrustSupplier

public ExprTrustSupplier getExprTrustSupplier()
Description copied from interface: ExprCompileContext
Return the security policiy that is associated with this context.
Specified by:
getExprTrustSupplier in interface ExprCompileContext
Overrides:
getExprTrustSupplier in class AbstractCompileContext

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.