|
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.jdeveloper.audit.transform.TransformContext
oracle.jdeveloper.audit.java.JavaTransformContext
public class JavaTransformContext
The TransformContext for transforms which use the JDeveloper Java
model (oracle.javatools.parser.java.v2.model).
| Constructor Summary | |
|---|---|
JavaTransformContext(JavaTransformAdapter adapter,
Transform transform,
Violation violation,
Location location)
|
|
| Method Summary | |
|---|---|
void |
ensureImport(JavaType type)
Ensures that a type is imported by the SourceFile enclosing the
location of this context. |
void |
ensureImport(java.lang.String typeName)
Ensures that a type is imported by the SourceFile enclosing the
location of this context. |
void |
ensureImportRetained(java.lang.String typeName)
Ensures that a type is imported by the SourceFile enclosing the
location of this context, and retains the import even if unused. |
void |
ensureImports(java.util.Collection types)
Ensures that types are imported by the SourceFile enclosing the
location of this context. |
void |
ensureImports(java.lang.String[] typeNames)
Ensures that types are imported by the SourceFile enclosing the
location of this context. |
JavaManager |
getJavaManager()
Gets the JavaManager for the project of this context. |
SourceFactory |
getSourceFactory()
Gets the SourceFactory for the location of this context. |
SourceFile |
getSourceFile()
Gets the SourceFile enclosing the location of this context. |
JavaClass |
getType(java.lang.String qualifiedName)
Gets a class in the context of the location of this context. |
JavaClass[] |
getTypes(java.lang.String[] qualifiedNames)
Gets an array of classes in the context of the location of this context. |
| Methods inherited from class oracle.jdeveloper.audit.transform.TransformContext |
|---|
addHighlight, addRemovedHighlight, getAdapter, getAttribute, getDefaultTransform, getFocusLocation, getIdeContext, getLocation, getModel, getModelAdapter, getNode, getParameter, getParameterCount, getParameterName, getParameterValue, getParameterValue, getPredecessorApplyData, getProject, getRule, getSerialNumber, getTransform, getTransform, getTransformCount, getTransformFocusLocation, getVariation, getViolation, getWorkspace, invokeLater, setAttribute, setPredecessorApplyData, setSelection, setSelection, setSelection, setSelection, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaTransformContext(JavaTransformAdapter adapter,
Transform transform,
Violation violation,
Location location)
| Method Detail |
|---|
public JavaManager getJavaManager()
JavaManager for the project of this context.
public SourceFile getSourceFile()
SourceFile enclosing the location of this context.
public SourceFactory getSourceFactory()
SourceFactory for the location of this context.
public JavaClass getType(java.lang.String qualifiedName)
qualifiedName - The fully-qualified name of the typepublic JavaClass[] getTypes(java.lang.String[] qualifiedNames)
qualifiedNames - An array of the fully-qualified names of the types.public void ensureImport(JavaType type)
SourceFile enclosing the
location of this context.
type - the JavaType to import.public void ensureImport(java.lang.String typeName)
SourceFile enclosing the
location of this context.
typeName - the qualified name of the type to import.public void ensureImportRetained(java.lang.String typeName)
SourceFile enclosing the
location of this context, and retains the import even if unused.
typeName - the qualified name of the type to import.public void ensureImports(java.util.Collection types)
SourceFile enclosing the
location of this context.
types - a Collection of JavaTypes to import.public void ensureImports(java.lang.String[] typeNames)
SourceFile enclosing the
location of this context.
typeNames - an array of qualified names of types to import.
|
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 | |||||||||