| Package | Description | 
|---|---|
| oracle.javatools.formatter.java | |
| oracle.javatools.parser.java.v2 | 
 The parser API. 
 | 
| oracle.javatools.parser.java.v2.common | 
 Classes common to model implementations. 
 | 
| oracle.javatools.parser.java.v2.model | 
 The parser model API. 
 | 
| oracle.javatools.parser.java.v2.scanner | 
 The parser's scanner API. 
 | 
| oracle.javatools.parser.java.v2.util | 
 Various utilities for use with the parser. 
 | 
| oracle.jdeveloper.compiler | |
| oracle.jdeveloper.java | 
 Public API for the java model. 
 | 
| oracle.jdeveloper.java.provider | 
 Public implementations of the JavaFileProvider interface. 
 | 
| oracle.jdeveloper.java.util | 
 Public utilities for use with the java model, including the parser. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static JdkVersion | 
JavaFormatter.checkSourceOption(java.lang.String source)
Check the argument of the -source option, which should be something
 like '1.5', and should be a JDK version that the formatter supports. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
JavaFormatter.formatFile(java.io.File file,
          JdkVersion jdkVersion,
          SourcePreferences sourcePreferences,
          java.lang.String encoding,
          boolean quiet,
          int indent)
Format one file. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static JdkVersion | 
JavaParser.getJdkOfIde()
Get the version of the JDK used to run the IDE. 
 | 
static JdkVersion | 
JavaParser.getJdkVersion()  | 
static JdkVersion | 
JdkVersion.getJdkVersion(byte j2se)
Converts from JavaTokens.J2SE_XXX value to JdkVersion. 
 | 
static JdkVersion | 
JdkVersion.getJdkVersion(java.lang.String version)
Given a version string where the version is assumed to be one or
 more numbers separated by dots, followed by any other information,
 for example, 1.8.0_40 or 9-internal, but not internal-9, create a
 corresponding JdkVersion. 
 | 
static JdkVersion | 
JdkVersion.getMaxVersion()
Get the maximum JDK version supported by JOT. 
 | 
static JdkVersion | 
JdkVersion.getMinVersion()
Get the minimum JDK version supported by JOT. 
 | 
JdkVersion | 
JdkVersion.getNextVersion()
Get the JdkVersion after this version. 
 | 
JdkVersion | 
JdkVersion.getPreviousVersion()
Get the JdkVersion before this version. 
 | 
static JdkVersion | 
JdkVersion.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static JdkVersion[] | 
JdkVersion.values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static SourceFile | 
SourceFactory.createFile(JdkVersion jdkVersion)
The SourceFile's URL and provider cookies are set to null. 
 | 
boolean | 
JdkVersion.isHigherOrEqualVersion(JdkVersion that)
Is this JdkVersion higher than or equal to
 the incoming JdkVersion? 
 | 
boolean | 
JdkVersion.isHigherVersion(JdkVersion that)
Is this JdkVersion higher than the incoming JdkVersion? 
 | 
boolean | 
JdkVersion.isLowerOrEqualVersion(JdkVersion that)
Is this JdkVersion lower than or equal to
 the incoming JdkVersion? 
 | 
boolean | 
JdkVersion.isLowerVersion(JdkVersion that)
Is this JdkVersion lower than the incoming JdkVersion? 
 | 
static JavaFile | 
JavaParser.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 | 
JavaParser.parse(ReadTextBuffer textBuffer,
     JdkVersion jdkVersion)
Parses the given text buffer with default options. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static JdkVersion | 
CommonUtilities.provider2JdkVersion(JavaProvider provider)  | 
| Modifier and Type | Method and Description | 
|---|---|
static JavaType | 
PrimitiveType.applyBoxingConversion(PrimitiveType input,
                     JavaProvider provider,
                     JdkVersion jdkVersion)
Tries to apply boxing to the input. 
 | 
static PrimitiveType | 
PrimitiveType.applyUnboxingConversion(JavaType input,
                       JdkVersion jdkVersion)
Tries to apply unboxing conversion to the input. 
 | 
static boolean | 
CommonUtilities.isKeyword(java.lang.String word,
         JdkVersion jdkVersion)
Determine if the incoming word is a keyword in the specified JDK version. 
 | 
static boolean | 
CommonUtilities.isReservedWord(java.lang.String word,
              JdkVersion jdkVersion)
Is the incoming word a keyword in the specified JDK, or one of
 'null', 'true', or 'false'? 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JdkVersion | 
SourceElement.getJdkVersion()
Gets the JDK version used to validate syntax for this SourceElement. 
 | 
| Constructor and Description | 
|---|
JavaLexer(JdkVersion jdkVersion)
Constructs a default  
JavaLexer with a starting
 position of 0. | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
Conversions.applyAssignmentConversion(JavaType subject,
                         SourceExpression subjectExpr,
                         JavaType target,
                         boolean isConstantValue,
                         JavaProvider provider,
                         JdkVersion jdkVersion)
JLS 5.2. 
 | 
static JavaType | 
Conversions.applyBinaryPromotion(JavaType lhs,
                    JavaType rhs,
                    JdkVersion jdkVersion)
JLS 5.6.2. 
 | 
static JavaType | 
Conversions.applyBoxingConversion(JavaType input,
                     JavaProvider provider,
                     JdkVersion jdkVersion)
Tries to apply boxing to the input. 
 | 
static JavaType | 
Conversions.applyBoxingConversion(PrimitiveType input,
                     JavaProvider provider,
                     JdkVersion jdkVersion)
Deprecated. 
 
Use applyBoxingConversion(JavaType,JavaProvider,JdkVersion) instead 
 | 
static boolean | 
Conversions.applyCastingConversion(JavaType subject,
                      JavaType target,
                      JavaProvider provider,
                      JdkVersion jdkVersion)
JLS 5.5. 
 | 
static boolean | 
Conversions.applyMethodConversion(JavaType subject,
                     JavaType target,
                     boolean allowBoxing,
                     JavaProvider provider,
                     JdkVersion jdkVersion)
JLS 5.3. 
 | 
static JavaType | 
Conversions.applyUnaryPromotion(JavaType subject,
                   JdkVersion jdkVersion)
JLS 5.6.1. 
 | 
static PrimitiveType | 
Conversions.applyUnboxingConversion(JavaType input,
                       JdkVersion jdkVersion)
JLS 5.1.8. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JdkVersion | 
BuildSystemConfiguration.getSourceJdkVersion()
Get the -source option for the build expressed as a JdkVersion 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
BuildSystemConfiguration.isEqual(JdkVersion jdkVersion)
Is the project's JDK equal to the incoming JDK? 
 | 
boolean | 
BuildSystemConfiguration.isEqualOrHigher(JdkVersion jdkVersion)
Is the project's JDK equal to or higher than the incoming JDK? 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JdkVersion | 
JavaModel.getJdkVersion()
Get the JDK version used for syntax validation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
JavaModel.setJdkVersion(JdkVersion jdkVersion)
Set the JDK version used for syntaxx validation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JdkVersion | 
BaseFileProvider.getJdkVersion()
Get the JDK version of this provider. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFile | 
JdevProviderContext.createSourceFile(java.net.URL sourceURL,
                JdkVersion jdkVersion)
Instead of directly interacting with the filesystem, use the
 Ide's Node model. 
 | 
SourceFile | 
ProviderContext.createSourceFile(java.net.URL url,
                JdkVersion jdkVersion)
Creates a new file at the given URL (*.java) and creates a
 SourceFile object for it. 
 | 
JavaFile | 
ProviderContext.getLightSourceFile(java.net.URL url,
                  JdkVersion jdkVersion)
Gets a new "light" SourceFile for the (existing) file at the given URL,
 packaged as a JavaFile. 
 | 
protected SourceFile | 
ProviderContext.getSourceFile(TextBuffer textBuffer,
             JdkVersion jdkVersion)
Creates a new SourceFile for the given TextBuffer. 
 | 
SourceFile | 
JdevProviderContext.getSourceFile(java.net.URL url,
             JdkVersion jdkVersion)  | 
SourceFile | 
ProviderContext.getSourceFile(java.net.URL url,
             JdkVersion jdkVersion)
Gets a new SourceFile for the source file at the given
 URL. 
 | 
protected SourceFile | 
ProviderContext.getSourceFileImpl(java.net.URL url,
                 JdkVersion jdkVersion)  | 
protected void | 
BaseFileProvider.setJdkVersion(JdkVersion jdkVersion)  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
NamingUtil.isJavaKeyword(java.lang.String name,
             JdkVersion jdkVersion)
Is the specified name a Java keyword in the specified JDK? 
 | 
static boolean | 
NamingUtil.isJavaReservedWord(java.lang.String name,
                  JdkVersion jdkVersion)
Returns  
true if the specified String is a Java
 reserved word in the specified JDK. |