Skip navigation links

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

E52932-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

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

 

Method Summary
 boolean canTypeCheck()
          Returns whether this compile context can be used for type checking.
 ExprCompileContext getEnclosingContext()
          Returns a compile context that should be used to resolve any types that that are defined by the enclosing variable/property/method.
 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 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.
 java.lang.String getSourceAttributeType(java.lang.String name)
          Return the source attribute type.
 java.lang.String getSourceMethodReturnType(java.lang.String name, java.lang.String... argtypes)
          Return the return type of a source method.
 java.lang.String getSourceOperationReturnType(java.lang.String name, java.lang.String... argtypes)
          Return the return type of a source operation.
 java.lang.String getSourcePropertyType(java.lang.String name)
          Return the source property type.
 java.lang.String getSourceType()
          Return the source type of the current compile context.
 boolean isCodeSource()
           

 

Methods inherited from class oracle.jbo.AbstractCompileContext
classesFor, classFor, getErrorCollector, getMethodReturnType, getPropertyType, getReturnType, getReturnType, getVariableType, isAssignableFrom, isRowAttribute, setErrorCollector

 

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

canTypeCheck

public boolean canTypeCheck()
Description copied from interface: ExprCompileContext
Returns whether this compile context can be used for type checking.
Specified by:
canTypeCheck in interface ExprCompileContext
Specified by:
canTypeCheck in class AbstractCompileContext

isCodeSource

public boolean isCodeSource()

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

getSourceType

public java.lang.String getSourceType()
Description copied from class: AbstractCompileContext
Return the source type of the current compile context.
Specified by:
getSourceType in class AbstractCompileContext

getSourceAttributeType

public java.lang.String getSourceAttributeType(java.lang.String name)
Description copied from class: AbstractCompileContext
Return the source attribute type. Many sources like a ViewObject definition may define named attributes. This returns the type of a named attribute.
Specified by:
getSourceAttributeType in class AbstractCompileContext

getSourcePropertyType

public java.lang.String getSourcePropertyType(java.lang.String name)
Description copied from class: AbstractCompileContext
Return the source property type. This is usually a bean property of the source.
Specified by:
getSourcePropertyType in class AbstractCompileContext

getSourceOperationReturnType

public java.lang.String getSourceOperationReturnType(java.lang.String name,
                                                     java.lang.String... argtypes)
Description copied from class: AbstractCompileContext
Return the return type of a source operation. Many sources may declare object functions (operations). The returns the return type of a source's operation.
Specified by:
getSourceOperationReturnType in class AbstractCompileContext

getSourceMethodReturnType

public java.lang.String getSourceMethodReturnType(java.lang.String name,
                                                  java.lang.String... argtypes)
Description copied from class: AbstractCompileContext
Return the return type of a source method. Many sources may also define custom interfaces (like a row class). This returns the return type of a source's custom interface.
Specified by:
getSourceMethodReturnType in class AbstractCompileContext

getNewValueType

public java.lang.String getNewValueType()
Description copied from class: AbstractCompileContext
In validator contexts this returns the type of the new attribute or row.
Specified by:
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.
Specified by:
getOldValueType in class AbstractCompileContext

getEnclosingContext

public ExprCompileContext getEnclosingContext()
Description copied from interface: ExprCompileContext
Returns a compile context that should be used to resolve any types that that are defined by the enclosing variable/property/method.

This will be invoked once by the type checker after it resolves an unbound variable/property/method. This method may be used to pass a compile context back to the compile context that will be later used to evaluate any other types in the enclosing context.

Specified by:
getEnclosingContext in interface ExprCompileContext
Overrides:
getEnclosingContext 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.0)

E52932-01


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