|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.parser.java.v2.JavaParser
public class JavaParser
Raw API for generating parse trees.
Field Summary | |
---|---|
static byte |
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 JavaFile |
lightParse(ReadTextBuffer textBuffer,
java.net.URL url,
JavaProvider javaProvider,
int j2se)
Parse the textBuffer and return a "light" sourceFile where all the method bodies were skipped In general this method should NOT be called directly. |
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 |
---|
public static byte j2se
Constructor Detail |
---|
public JavaParser()
Method Detail |
---|
public static SourceFile parse(ReadTextBuffer textBuffer)
public static SourceFile parse(ReadTextBuffer textBuffer, int j2se)
j2se
- Valid values are JavaTokens.J2SE_*.public static JavaFile lightParse(ReadTextBuffer textBuffer, java.net.URL url, JavaProvider javaProvider, int j2se)
textBuffer
- A text buffer, which cannot be nullurl
- The URL associated with the textBuffer, if there is such a URLjavaProvider
- The JavaProvider which can be used to
resolve types after the parse, if there is such a JavaProviderj2se
- The Java Version, one of JavaTokens.J2SE_*
public static boolean cancelParse(java.lang.Thread thread)
thread
- A thread that is currently parsing
public static java.util.logging.Logger getLogger()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |