Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.jdeveloper.compiler
Class IdeLog

java.lang.Object
  extended by oracle.jdeveloper.compiler.IdeLog

All Implemented Interfaces:
Translator.Log

public class IdeLog
extends java.lang.Object
implements Translator.Log

Nested Class Summary
static interface IdeLog.ActivateEvent
           
static interface IdeLog.FixEvent
           
static class IdeLog.Message
           

 

Constructor Summary
IdeLog()
           

 

Method Summary
 void clear(Storage source)
          clear all messages for the specified source file
 void completed()
          completed() sends a special (Completed) message to the compiler page notifying it that this is the last message for that build session.
 void error(Storage source, int line, int col, int errNumber, java.lang.String errMsg)
          print an error message:
static int getPartialUsedStarImportCode()
           
 Project getProject()
          get current project being compiled
static int getUnusedImportCode()
           
 Workspace getWorkspace()
          get current workspace being compiled
static boolean isPartiallyUsedImportWarning(IdeLog.Message msg)
           
static boolean isUnusedImportWarning(IdeLog.Message msg)
           
 int nerrors()
          how many errors/warnigns so far?
 int nwarnings()
           
 void registerAsynchronousLogPage(LogPage asyncLogPage)
          Set the log page used for asynchronous logging
 void reinit()
           
 void setProject(Project project)
          set current project being compiled
 void setWorkspace(Workspace wsp)
          set current workspace being compiled
 void unregisterAsynchronousLogPage(LogPage asyncLogPage)
          Unregister the log page used for asynchronous logging
 void warning(Storage source, int line, int col, int errNumber, java.lang.String errMsg)
          print a warning message:

 

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

 

Constructor Detail

IdeLog

public IdeLog()

Method Detail

reinit

public void reinit()

getProject

public Project getProject()
get current project being compiled

setProject

public void setProject(Project project)
set current project being compiled

getWorkspace

public Workspace getWorkspace()
get current workspace being compiled

setWorkspace

public void setWorkspace(Workspace wsp)
set current workspace being compiled

getPartialUsedStarImportCode

public static int getPartialUsedStarImportCode()

getUnusedImportCode

public static int getUnusedImportCode()

isPartiallyUsedImportWarning

public static boolean isPartiallyUsedImportWarning(IdeLog.Message msg)

isUnusedImportWarning

public static boolean isUnusedImportWarning(IdeLog.Message msg)

error

public void error(Storage source,
                  int line,
                  int col,
                  int errNumber,
                  java.lang.String errMsg)
print an error message:
Specified by:
error in interface Translator.Log
Parameters:
source - -- source file where that error is coming from
line - -- line number for the error
col - -- column number for the error
errNumber - -- error number
errMsg - -- error text

warning

public void warning(Storage source,
                    int line,
                    int col,
                    int errNumber,
                    java.lang.String errMsg)
print a warning message:
Specified by:
warning in interface Translator.Log
Parameters:
source - -- source file where that warning is coming from
line - -- line number for the warning
col - -- column number for the warning
errNumber - -- warning number
errMsg - -- warning text

clear

public void clear(Storage source)
clear all messages for the specified source file
Specified by:
clear in interface Translator.Log
Parameters:
source - -- source file for which messages needs to cleared.

completed

public void completed()
completed() sends a special (Completed) message to the compiler page notifying it that this is the last message for that build session. If all previous messages have been fixed and there is no more messages in the page, it should close. Without that special message, it is impossible to know when to close the page.

nerrors

public int nerrors()
how many errors/warnigns so far?
Specified by:
nerrors in interface Translator.Log
Returns:
numbers of errors/warnings respectively

nwarnings

public int nwarnings()
Specified by:
nwarnings in interface Translator.Log

registerAsynchronousLogPage

public void registerAsynchronousLogPage(LogPage asyncLogPage)
Set the log page used for asynchronous logging

unregisterAsynchronousLogPage

public void unregisterAsynchronousLogPage(LogPage asyncLogPage)
Unregister the log page used for asynchronous logging

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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