Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.model.java
Class JavaSource  view JavaSource download JavaSource.java

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

public final class JavaSource
extends javax.ide.model.text.TextDocument

The JavaSource class.


Field Summary
 
Fields inherited from class javax.ide.model.Document
 
Constructor Summary
JavaSource()
           
 
Method Summary
 javax.ide.model.java.declaration.ClassD getClass(javax.ide.model.Project project)
          Fetches a ClassD for the given fully qualified name in source format, null if none.
private  javax.ide.model.spi.JavaSourceImpl getJavaSourceImpl()
           
 
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

getJavaSourceImpl

private javax.ide.model.spi.JavaSourceImpl getJavaSourceImpl()

getClass

public final javax.ide.model.java.declaration.ClassD getClass(javax.ide.model.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.