public final class JavaSourceNode extends JavaNode implements PackagedSourceNode
JavaSourceNode interface represents a Java source file
in the JDeveloper browser.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
defaultName |
static java.lang.String |
EXT |
static java.lang.String |
SQLJ_EXT |
EXT2LOG_READONLY| Constructor and Description |
|---|
JavaSourceNode() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeImpl()
Subclasses should override this method to customize the close()
behavior.
|
java.lang.String |
getPackage() |
java.lang.String |
getPackage(Project project)
Returns the package for the source file.
|
java.lang.String |
getSourceFile()
Returns the file name for the source file.
|
boolean |
isSqlj() |
acquireTextBuffer, acquireTextBufferInterruptibly, acquireTextBufferOrThrow, addTextBufferListener, addWeakTextBufferListener, createOutputStreamWriter, createReader, facadeBuffer, getInputStream, getInputStream, getLoadEncoding, getReader, getSaveEncoding, getTextBufferDirectly, hasEmptyTextBuffer, isDirty, isReadOnly, markDirty, markDirtyImpl, openImpl, readUnlock, releaseTextBuffer, removeTextBufferListener, removeWeakTextBufferListener, reportOpenException, revertImpl, saveImpl, setDefaultLineTerminator, setLoadEncoding, setSaveEncoding, tryAcquireTextBuffer, upgradeUnlock, urlReadOnlyChanged, writeUnlockaddNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOrWriteLocked, isTrackedInNodeCache, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, readLockInterruptibly, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, removeWeakNodeListener, rename, renameImpl, revert, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, writeLock, writeLockCount, writeLockInterruptiblyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributedLabelpublic static final java.lang.String EXT
public static final java.lang.String SQLJ_EXT
public static final java.lang.String defaultName
protected void closeImpl()
throws java.io.IOException
NodeNode.close() invokes this only if the node is open, under
write lock. The Node implementation does nothing.public boolean isSqlj()
true if this JavaSourceNode represents
a SQLJ source file; false if it's a regular
Java source file.public java.lang.String getPackage()
public java.lang.String getPackage(Project project)
PackagedSourceNodegetPackage in interface PackagedSourceNodeproject - the project which contains the source filepublic java.lang.String getSourceFile()
PackagedSourceNode
In the case of a normal Java file, this method should return the
source file attribute, defined as the following:
Only the name of the source file is given by the source file attribute
it never represents the name of a directory containing the file or an
absolute path name for the file. For instance the source file attribute
may contain file name foo.java but not the UNIX path name
/home/jdevwork/workspace1/project1/package1/foo.java.
getSourceFile in interface PackagedSourceNode