|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.parser.java.v2.util.NullProvider
public class NullProvider
A provider implementation that does nothing. Used to guarantee non-null JavaProviders.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
|---|
JavaPreferences.MemberOrder |
| Field Summary |
|---|
| Fields inherited from interface oracle.javatools.parser.java.v2.JavaOperators |
|---|
OPT_ADD, OPT_ADDASG, OPT_AND, OPT_ANNOTATION, OPT_ARRAYCONST, OPT_ASG, OPT_base, OPT_BITAND, OPT_BITANDASG, OPT_BITNOT, OPT_BITOR, OPT_BITORASG, OPT_BITXOR, OPT_BITXORASG, OPT_CLASS_LITERAL, OPT_COND, OPT_DEREF, OPT_DIV, OPT_DIVASG, OPT_DOT, OPT_EQ, OPT_GE, OPT_GT, OPT_INSTANCEOF, OPT_invalid, OPT_INVOKE, OPT_LE, OPT_LIST, OPT_LITERAL, OPT_LSH, OPT_LSHASG, OPT_LT, OPT_max, OPT_MINUS, OPT_MINUSASG, OPT_MOD, OPT_MODASG, OPT_MUL, OPT_MULASG, OPT_NEGATIVE, OPT_NESTEXP, OPT_NEWARRAY, OPT_NEWOBJECT, OPT_NOT, OPT_NOTEQ, OPT_OR, OPT_POSITIVE, OPT_POSTDEC, OPT_POSTINC, OPT_precedence, OPT_PREDEC, OPT_PREINC, OPT_QUALIFIED_SUPER, OPT_QUALIFIED_THIS, OPT_RSH, OPT_RSHASG, OPT_SIMPLE_NAME, OPT_tokens, OPT_TYPE, OPT_TYPECAST, OPT_URSH, OPT_URSHASG, OPT_words |
| Method Summary | |
|---|---|
JavaType |
getArrayType(JavaType componentType,
int dimensions)
Fetch the JavaType representing the given array type
of the specified component type and dimensions. |
JavaClass |
getClass(java.lang.String fqName)
Fetch the JavaClass for the given fully-qualified type
name in dotted notation. |
JavaClass |
getClass(java.lang.String fqPrefix,
java.lang.String name)
Fetch the JavaClass for the given qualified class. |
JavaClass |
getClassByVMName(java.lang.String fqVmName)
Fetch the JavaClass for the specified fully-qualified
type name in VM notation. |
static NullProvider |
getInstance()
|
JavaPackage |
getPackage(java.lang.String fqPrefix)
Fetch the JavaPackage for the given fully-qualified
package prefix. |
SourceClass |
getSourceClass(java.lang.String fqName)
Fetch the SourceClass for the fully-qualified class
name. |
TextBuffer |
getTextBuffer(java.net.URL url)
Fetch a TextBuffer instance for the specified URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NullProvider getInstance()
public JavaClass getClass(java.lang.String fqName)
JavaProviderJavaClass for the given fully-qualified type
name in dotted notation. The type may denote a primitive type, or
a class type.
If the qualified name specified represents a primitive type, then
the implementer is required to return the canonical
PrimitiveType instance. PrimitiveType is
in the "common" subpackage and implementers can get the correct one
by calling CommonUtilities.getPrimitiveType( String ).
If the qualified name specified represents a class type, the implementation has the choice of fetching the class information from either a Java class (*.class) or source (*.java) file. The choice is given to implementations for performance reasons, though implementations are required to provide up-to-date information.
For class types, implementations are required to perform left-to-right class resolution.
Although implementations are not required to return the same
JavaClass instance each time, they are encouraged to
do so as it will dramatically improve performance.
getClass in interface JavaProviderfqName - the fully-qualified type name in dotted notation, such
as "java.lang.Object" or "java.util.Map.Entry"
public JavaClass getClass(java.lang.String fqPrefix,
java.lang.String name)
JavaProviderJavaClass for the given qualified class.
This is similar to getClass( String fqName ) except
that it splits out the fully-qualified prefix and class name
for convenience.
Implementations can concatenate the fqPrefix and name together
and just rely on the getClass( String fqName ) method.
getClass in interface JavaProviderfqPrefix - the fully-qualified prefixname - the name of the class
public JavaClass getClassByVMName(java.lang.String fqVmName)
JavaProviderJavaClass for the specified fully-qualified
type name in VM notation. The type may denote an array type,
a primitive type, or a class type.
If the qualified name specified represents an array type, the
implementer should fetch the JavaClass for the
underlying class first, then generate an array type for the
class using getArrayType( class, dimensions ).
If the qualified name specifies a primitive type, the implementer
is required to return the canonical PrimitiveType
instance.
If the qualified name represents a class type, the implementation has the choice of fetching the class information from either a Java class (*.class) or source (*.java) file. The choice is given to implementations for performance reasons, though implementations are required to provide up-to-date information.
The '/' is a package delimiter, while the '$' can be treated literally as part of the class name, or as a class delimiter. Implementations must perform left-to-right resolution on the class name portion to determine whether '$' should be interpreted literally, or as a delimiter.
Although implementations are not required to return the same
JavaClass instance each time, they are encouraged to
do so as it will dramatically improve performance.
getClassByVMName in interface JavaProvider
public JavaType getArrayType(JavaType componentType,
int dimensions)
JavaProviderJavaType representing the given array type
of the specified component type and dimensions.
getArrayType in interface JavaProvidercomponentType - the component type to generate an array type
fordimensions - the array dimensions for the array type
public SourceClass getSourceClass(java.lang.String fqName)
JavaProviderSourceClass for the fully-qualified class
name. The name must represent a class type. Implementations must
base the class information on Java source (*.java) content.
Similar to getClass( String fqName ), implementations
must perform left-to-right package/class resolution.
getSourceClass in interface JavaProviderfqName - the fully-qualified type name in dotted notation, such
as "java.lang.Object" or "java.util.Map.Entry"
public JavaPackage getPackage(java.lang.String fqPrefix)
JavaProviderJavaPackage for the given fully-qualified
package prefix. An empty String ("") represents the root package.
getPackage in interface JavaProviderfqPrefix - the fully-qualified package prefix, such as
"java.io" or "javax.swing.text"
public TextBuffer getTextBuffer(java.net.URL url)
JavaProviderTextBuffer instance for the specified URL.
This is used currently for parsing and resolving a SourceFile.
This method may be removed in the future.
getTextBuffer in interface JavaProviderurl - the URL to fetch the TextBuffer for
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||