|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides additional methods for manipulating a Java source file.
Method Summary | |
JotClassSource |
addClass(JotMarker marker,
boolean before,
java.lang.String name,
boolean isInterface)
Creates a JotClassSource object with the specified name and inserts it into the file. |
JotImport |
addImport(java.lang.String name)
Creates a JotImport object for the specified package or class and inserts it in the file. |
void |
addJotFileListener(JotFileListener l)
|
int |
getComparableLocation(JotMarker m)
Returns a value that can be used to determine the order of statements in this file. |
java.lang.String |
getFullClassName(java.lang.String className)
Returns the fully-qualified name of the given className as if the class had been declared in this file. |
JotImport |
getImport(java.lang.String name)
Returns the JotImport object which imports the specified class or package. |
JotImport[] |
getImports()
Returns an array of JotImport objects which represent the import
statements in this source file. |
JotPackages |
getPackageManager()
convience method for getting the proper JotPackages object do deal with |
boolean |
isReadOnly()
Returns true if this file cannot be modified. |
java.lang.String |
out()
|
void |
removeClass(JotClass clazz)
Removes the specified class from the file. |
void |
removeImport(JotImport imp)
Removes the import statement represented by the specified
JotImport object from the file. |
void |
removeJotFileListener(JotFileListener l)
|
void |
reRead()
Internal use only. |
void |
setPackage(java.lang.String packageName)
Sets the package which contains this file. |
void |
setTimestamp(long t)
Internal use only. |
Methods inherited from interface com.borland.jbuilder.jot.JotFile |
getClass, getClasses, getName, getPackage, getTimestamp, getUrl |
Methods inherited from interface com.borland.jbuilder.jot.JotCommentable |
addBlankLine, addComment, getComment, removeComment |
Methods inherited from interface com.borland.jbuilder.jot.JotMarker |
addUserData, getEndPosition, getStartPosition, getUserData |
Method Detail |
public void setPackage(java.lang.String packageName)
public JotImport[] getImports()
import
statements in this source file. If there are no import statements, then
returns a zero-length array.public JotImport getImport(java.lang.String name)
java.lang.*
.public JotImport addImport(java.lang.String name)
java.lang.*
.public void removeImport(JotImport imp)
import
statement represented by the specified
JotImport object from the file.public JotClassSource addClass(JotMarker marker, boolean before, java.lang.String name, boolean isInterface)
isInterface
is true
, then the class
will be declared as an interface.public void removeClass(JotClass clazz)
public java.lang.String getFullClassName(java.lang.String className)
public int getComparableLocation(JotMarker m)
public void setTimestamp(long t)
public void addJotFileListener(JotFileListener l)
public void removeJotFileListener(JotFileListener l)
public boolean isReadOnly()
true
if this file cannot be modified.public JotPackages getPackageManager()
getPackageManager
in interface JotFile
public void reRead()
public java.lang.String out()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |