Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ojc.interfaces
Interface IdeEnv


public interface IdeEnv

The IdeEnv interface supplies an abstract layer for authorizing compile phases such as parsing, checking and writing.


Method Summary
 boolean authorizeChecking(Storage source, java.lang.String reason)
          Called before (re)checking the given source of the given graph.
 boolean authorizeParsing(Storage source, java.lang.String reason)
          Called before (re)parsing the given source of the given graph.
 boolean authorizeWriting(Storage source, java.lang.String qualifiedClassName, byte[] buffer, int offset, int len)
          Called before code generation and writing the given output source (.class) of the given graph.
 

Method Detail

authorizeParsing

boolean authorizeParsing(Storage source,
                         java.lang.String reason)
Called before (re)parsing the given source of the given graph. Return true to authorize the parse. Returning false will abort the current make session or compile session.

Parameters:
source - The source to be parsed
reason - The reason for parsing
Returns:
True to authorize the parse, false to abort the current compile or make

authorizeChecking

boolean authorizeChecking(Storage source,
                          java.lang.String reason)
Called before (re)checking the given source of the given graph. Return true to authorize the checking. Returning false will abort the current make session or compile session.

Parameters:
source - The source to be checked
reason - The reason for checking
Returns:
True to authorize the checking, false to abort the current compile or make

authorizeWriting

boolean authorizeWriting(Storage source,
                         java.lang.String qualifiedClassName,
                         byte[] buffer,
                         int offset,
                         int len)
Called before code generation and writing the given output source (.class) of the given graph. Return true to authorize the operation. Returning false will abort the current make session or compile session.

Parameters:
source - The .class file that will be written
qualifiedClassName - The name of the class
buffer - The buffer that supplies the contents for the writing
offset - The starting offset of the contents to be written
len - The number of bytes to write
Returns:
True to authorize the writing, false to abort the current compile or make

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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