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

E13403-03

oracle.javatools.parser.java.v2
Class JavaParser

java.lang.Object
  extended by oracle.javatools.parser.java.v2.JavaParser

public class JavaParser
extends java.lang.Object

Raw API for generating parse trees.


Field Summary
static int j2se
           
 
Constructor Summary
JavaParser()
           
 
Method Summary
static boolean cancelParse(java.lang.Thread thread)
          Attempt to cancel the parse running on the thread indicated by the incoming 'thread' parameter.
static java.util.logging.Logger getLogger()
           
static SourceFile parse(ReadTextBuffer textBuffer)
          Parses the given text buffer with default options.
static SourceFile parse(ReadTextBuffer textBuffer, int j2se)
          Parses the given text buffer with default options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

j2se

public static int j2se
Constructor Detail

JavaParser

public JavaParser()
Method Detail

parse

public static SourceFile parse(ReadTextBuffer textBuffer)
Parses the given text buffer with default options.


parse

public static SourceFile parse(ReadTextBuffer textBuffer,
                               int j2se)
Parses the given text buffer with default options.

Parameters:
j2se - Valid values are JavaTokens.J2SE_*.

cancelParse

public static boolean cancelParse(java.lang.Thread thread)
Attempt to cancel the parse running on the thread indicated by the incoming 'thread' parameter. If the parser actually cancels the parse, it will throw a CancellationException on the thread indicated by the incoming 'thread' parameter.

Parameters:
thread - A thread that is currently parsing
Returns:
True if the parser was notified of the cancellation, false otherwise, usually because there was no parser associated with the incoming 'thread' parameter. Notification of cancellation is no guarantee that the parser can actually cancel the parse.

getLogger

public static java.util.logging.Logger getLogger()

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

E13403-03

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