Skip navigation links 
 
oracle.jdeveloper.model
Class JavaClassNode
java.lang.Object
   oracle.ide.model.Node
oracle.ide.model.Node
       oracle.ide.model.TextNode
oracle.ide.model.TextNode
           oracle.ide.model.DeployableTextNode
oracle.ide.model.DeployableTextNode
               oracle.jdeveloper.model.JavaNode
oracle.jdeveloper.model.JavaNode
                   oracle.jdeveloper.model.JavaClassNode
oracle.jdeveloper.model.JavaClassNode
- All Implemented Interfaces:
- Displayable, Element, LazyLoadable, Locatable, Subject, Dirtyable
- 
public final class JavaClassNode
 
- extends JavaNode
The JavaNode interface represents a Java class element in the JDeveloper browser. A JavaNode could be either a .class file or a .java file; however, JDeveloper normally represents a .java file with the JavaSourceNode, which extends JavaNode.
In addition to providing the usual Node features, a JavaNode provides access to both a code-level view (through the JOT subsystem) and a component view (through the CMT subsystem) of the Java class.
- See Also:
- JavaSourceNode
 
| Field Summary | 
| static java.lang.String | EXT
 | 
 
 
  
 
  
 
| Method Summary | 
| protected  java.io.Reader | createReader(java.net.URL url)Fetch a Reader for reading the contents of this node from the given URL.
 | 
| protected static java.lang.String | emitFile(JavaFile javaFile)Given a JavaFile, emit a source stub for that JavaFile
 | 
|  boolean | isReadOnly()Returns
 trueif the Node is read-only. | 
| protected  void | saveImpl()Subclasses should override this method to customize the save() behavior.
 | 
 
 
| Methods inherited from class oracle.ide.model.TextNode | 
| acquireTextBuffer, acquireTextBufferOrThrow, addTextBufferListener, closeImpl, createOutputStreamWriter, getInputStream, getInputStream, getLoadEncoding, getReader, getSaveEncoding, getTextBufferDirectly, hasEmptyTextBuffer, isDirty, markDirty, markDirtyImpl, openImpl, readUnlock, releaseTextBuffer, removeTextBufferListener, reportOpenException, revertImpl, setDefaultLineTerminator, setLoadEncoding, setSaveEncoding, tryAcquireTextBuffer, upgradeUnlock, urlReadOnlyChanged, writeUnlock | 
 
| Methods inherited from class oracle.ide.model.Node | 
| addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, 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, isMigrating, isNew, isOpen, isReadLocked, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, lockCount, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, revert, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, writeLock, writeLockCount | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
EXT
public static final java.lang.String EXT
- 
- See Also:
- Constant Field Values
 
JavaClassNode
public JavaClassNode()
createReader
protected java.io.Reader createReader(java.net.URL url)
                               throws java.io.IOException
- Description copied from class: TextNode
- Fetch a Reader for reading the contents of this node from the given URL. Subclasses may override this if they have special requirements for creating the Reader.
- 
- Overrides:
- createReaderin class- TextNode
 
- 
- Parameters:
- url- the URL to fetch a Reader for
- Returns:
- a Reader for loading the contents of this node from storage
- Throws:
- java.io.IOException
 
saveImpl
protected void saveImpl()
- Description copied from class: Node
- Subclasses should override this method to customize the save() behavior. Node.save()invokes this only if the node is dirty, under write lock. TheNodeimplementation does nothing.
- 
- Overrides:
- saveImplin class- TextNode
 
isReadOnly
public boolean isReadOnly()
- Description copied from class: TextNode
- Returns trueif the Node is read-only.TextNodeoverrides to force the underlying buffer to be read only.
 
- 
- Overrides:
- isReadOnlyin class- TextNode
 
- 
- See Also:
- Node.isReadOnly()
 
emitFile
protected static java.lang.String emitFile(JavaFile javaFile)
- Given a JavaFile, emit a source stub for that JavaFile
- 
- Parameters:
- javaFile- A JavaFile which cannot be null
- Returns:
- A source stub for the JavaFile
 
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.