Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


javax.ide.model.java
Class JavaSource

java.lang.Object
  extended by javax.ide.model.Element
      extended by javax.ide.model.Document
          extended by javax.ide.model.text.TextDocument
              extended by javax.ide.model.java.JavaSource


public final class JavaSource
extends TextDocument

The JavaSource class.


Constructor Summary
JavaSource()
           

 

Method Summary
 ClassD getClass(Project project)
          Fetches a ClassD for the given fully qualified name in source format, null if none.

 

Methods inherited from class javax.ide.model.text.TextDocument
getTextModel

 

Methods inherited from class javax.ide.model.Document
addDocumentListener, close, equals, getDisplayInfo, getElementImpl, getReader, getTimestamp, getURI, hashCode, isDirty, isNew, isOpen, isReadOnly, markDirty, open, removeDocumentListener, save, setDisplayInfo, setURI

 

Methods inherited from class javax.ide.model.Element
getIcon, getLabel, getLongLabel, getToolTip

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JavaSource

public JavaSource()

Method Detail

getClass

public final ClassD getClass(Project project)
                      throws java.io.IOException
Fetches a ClassD for the given fully qualified name in source format, null if none. The name may denote a primitive type, void return type, array type, or class type.

If multiple sources of class information are available, the most up-to-date one is returned. For example, suppose we have both a class file C.class and a source file C.java that both provide class information for a class C. If C.class has a more recent timestamp than C.java, then a ClassD built from C.class should be returned.

Parameters:
project - The project used to resolve class.
Returns:
A ClassD for the given fully qualified name, null if none can be found.
Throws:
java.io.IOException - If the document cannot be opened.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


Copyright © 1997, 2011, Oracle. All rights reserved.