|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.repository.JxCompilationUnit
Stores information of a compilation unit (Java source file).
| Constructor Summary | |
protected |
JxCompilationUnit(org.eclipse.jdt.core.ICompilationUnit cu,
java.lang.String filename)
Creates an object that will store information about a given compilation unit; |
| Method Summary | |
protected void |
bind(Binder binder)
Adds the binding information of this compilation unit to its XML document. |
void |
clear()
Discard the DOM document object. |
protected void |
convert(Converter converter)
Converts this compilation unit to an XML document. |
protected void |
delete()
Discards information about the compilation unit and its DOM document object. |
java.lang.String |
getCharsetName()
Returns a charset name of the original source file. |
org.eclipse.jdt.core.ICompilationUnit |
getCompilationUnit()
Returns a native dirtyUcompilation unit stored in this object. |
org.w3c.dom.Element |
getCorrespondingElement(java.lang.String fqn)
Returns a DOM element object corresponfing to the fully-qualified name of a class. |
org.w3c.dom.Document |
getDocument()
Returns a DOM document object generated from the source code. |
java.lang.String |
getFilename()
Returns the relative path name of the original source file. |
org.eclipse.core.resources.IFile |
getIFile()
Returns a file resource for the stored compilation unit. |
java.lang.String |
getOriginalCode()
Obtains the text of the original source code. |
java.lang.String |
getRecoveredCode()
Obtains the text of source code recovered from an XML document. |
java.lang.String |
getText()
Obtains the text of an XML document corresponding to a DOM document object. |
java.lang.String |
getText(java.lang.String dtdName)
Obtains the text of an XML document corresponding to a DOM document object. |
boolean |
isDirty()
Tests if the DOM document object is dirty. |
protected org.w3c.dom.Document |
parse(Converter converter)
Parses input source code and generates its DOM document object. |
protected boolean |
restore()
Restores informtaion about this compilation unit. |
void |
setLineNumber()
Assigns line numbers to DOM elements. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected JxCompilationUnit(org.eclipse.jdt.core.ICompilationUnit cu,
java.lang.String filename)
cu - A compilation unit.filename - A filename of a compilation unit.| Method Detail |
protected void delete()
public void clear()
protected boolean restore()
true if the original of this compilation unit exists, otherwise false.
protected org.w3c.dom.Document parse(Converter converter)
throws JxException
converter - A conveter.
JxException - if a fatal error occurs during the parsing.
protected void convert(Converter converter)
throws JxException
converter - A conveter.
true if the conversion succeeds, otherwise false.
JxException - if a fatal error occurs during the convertion.
protected void bind(Binder binder)
throws JxException
binder - A binder.
true if the conversion succeeds, otherwise false.
JxException - if a fatal error occurs during the binding.public org.eclipse.jdt.core.ICompilationUnit getCompilationUnit()
ICompilationUnit.public org.eclipse.core.resources.IFile getIFile()
IFile resource.public org.w3c.dom.Document getDocument()
public java.lang.String getFilename()
public java.lang.String getCharsetName()
public boolean isDirty()
true if the document is dirty, otherwise false.public java.lang.String getRecoveredCode()
public java.lang.String getOriginalCode()
public java.lang.String getText()
public java.lang.String getText(java.lang.String dtdName)
dtdName - The name of a used DTD.
public void setLineNumber()
public org.w3c.dom.Element getCorrespondingElement(java.lang.String fqn)
fqn - The fully-qualified name of a class.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||