public class JavaParser
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static byte | 
j2se
Deprecated. 
 
Use getJdkVersion() instead 
 | 
static java.lang.String | 
JOT_JDKVERSION_OVERRIDE
The name of the System property to set if the caller wants to override
 the JDK version JOT uses for parsing. 
 | 
| Constructor and Description | 
|---|
JavaParser()  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
cancelParse(java.lang.Thread thread)
Attempt to cancel the parse running on the thread indicated by the
 incoming 'thread' parameter. 
 | 
static JdkVersion | 
getJdkOfIde()
Get the version of the JDK used to run the IDE. 
 | 
static JdkVersion | 
getJdkVersion()  | 
static java.util.logging.Logger | 
getLogger()  | 
static JavaFile | 
lightParse(ReadTextBuffer textBuffer,
          java.net.URL url,
          JavaProvider javaProvider,
          int j2se)
Deprecated. 
 
Use lightParse( ReadTextBuffer, URL, JavaProvider, JdkVersion ) instead 
 | 
static JavaFile | 
lightParse(ReadTextBuffer textBuffer,
          java.net.URL url,
          JavaProvider javaProvider,
          JdkVersion jdkVersion)
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)
Deprecated. 
 
Use parse( ReadTextBuffer, JdkVersion ) instead 
 | 
static SourceFile | 
parse(ReadTextBuffer textBuffer,
     JdkVersion jdkVersion)
Parses the given text buffer with default options. 
 | 
public static final java.lang.String JOT_JDKVERSION_OVERRIDE
@Deprecated public static byte j2se
public static JdkVersion getJdkOfIde()
public static JdkVersion getJdkVersion()
public static SourceFile parse(ReadTextBuffer textBuffer)
@Deprecated public static SourceFile parse(ReadTextBuffer textBuffer, int j2se)
j2se - The JDK version used for syntax validation, use
 one of JavaTokens.J2SE_*.public static SourceFile parse(ReadTextBuffer textBuffer, JdkVersion jdkVersion)
jdkVersion - The desired JDK version used for syntax validation@Deprecated 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 JavaFile lightParse(ReadTextBuffer textBuffer, java.net.URL url, JavaProvider javaProvider, JdkVersion jdkVersion)
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 JavaProviderjdkVersion - The desired JDK version used for syntax validationpublic static boolean cancelParse(java.lang.Thread thread)
thread - A thread that is currently parsingpublic static java.util.logging.Logger getLogger()