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.getJdkVersion() |
static JdkVersion |
JdkVersion.getJdkVersion(byte j2se)
Converts from JavaTokens.J2SE_XXX value to 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.
|
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.
|
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 |
---|---|
JdkVersion |
JavaModel.getJdkVersion()
Get the JDK version used for syntax validation.
|
Modifier and Type | Method and Description |
---|---|
JdkVersion |
BaseFileProvider.getJdkVersion()
Get the JDK version of this provider.
|
Modifier and Type | Method and Description |
---|---|
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. |