java.lang.Object
javax.ide.model.Element
javax.ide.model.Document
javax.ide.model.text.TextDocument
javax.ide.model.java.JavaSource
- public final class JavaSource
- extends javax.ide.model.text.TextDocument
The JavaSource class.
| Fields inherited from class javax.ide.model.Document |
|
| 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 |
JavaSource
public JavaSource()
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.