com.borland.jbuilder.node
Class ClassFileNode

java.lang.Object
  |
  +--com.borland.primetime.node.Node
        |
        +--com.borland.primetime.node.UrlNode
              |
              +--com.borland.primetime.node.FileNode
                    |
                    +--com.borland.jbuilder.node.ClassFileNode

public class ClassFileNode
extends FileNode

ClassFileNode instances represent Java class files. While the node's buffer mirrors the binary class file format the method getStubSource provides a minimalist decompilation of the class file into readable form.


Field Summary
static java.lang.String EXTENSION
           
static javax.swing.Icon ICON
           
 
Fields inherited from class com.borland.primetime.node.Node
EMPTY_ARRAY, nodeListeners
 
Constructor Summary
ClassFileNode(Project project, Node parent, Url url)
          All FileNode subtypes must expose this constructor signature.
 
Method Summary
 javax.swing.Icon getDisplayIcon()
          Provides an image to be used for graphical representation of the node.
 int getDisplaySequence()
          Describes the logical group the node belongs to for ordering purposes.
 java.lang.String getStubSource()
           
static void initOpenTool(byte majorVersion, byte minorVersion)
          OpenTool initialization
 
Methods inherited from class com.borland.primetime.node.FileNode
check, findBuffer, findFileNodeClass, findFileNodeClass, findFileNodeClass, getBuffer, getDisplayName, getInputStream, getLongDisplayName, getOutputStream, getTimestamp, getUrl, isModified, isNew, isPersistant, isReadOnly, registerFileNodeClass, rename, revert, save, saveAs, setUrl
 
Methods inherited from class com.borland.primetime.node.UrlNode
getSuggestedUrl
 
Methods inherited from class com.borland.primetime.node.Node
addNodeListener, compareTo, dumpNodes, dumpNodes, dumpNodes, equals, fireNodeRenamed, getChildren, getDisplayChildren, getNodeID, getParent, getProject, getProperties, getProperty, getProperty, getProperty, hasChildren, hasDisplayChildren, hashCode, removeNodeListener, setParent, setProperty, setProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTENSION

public static final java.lang.String EXTENSION

ICON

public static final javax.swing.Icon ICON
Constructor Detail

ClassFileNode

public ClassFileNode(Project project,
                     Node parent,
                     Url url)
              throws DuplicateNodeException
All FileNode subtypes must expose this constructor signature.
Method Detail

initOpenTool

public static void initOpenTool(byte majorVersion,
                                byte minorVersion)
OpenTool initialization

getStubSource

public java.lang.String getStubSource()

getDisplayIcon

public javax.swing.Icon getDisplayIcon()
Description copied from class: Node
Provides an image to be used for graphical representation of the node.
Overrides:
getDisplayIcon in class FileNode
Tags copied from class: Node
Returns:
An Icon instance.

getDisplaySequence

public int getDisplaySequence()
Description copied from class: Node
Describes the logical group the node belongs to for ordering purposes. Nodes are divided into groups, then sorted by name within a group of nodes sharing the same grouping value. The groups themselves are ordered by grouping value, with lower numbers appearing earlier. Arbitrary numbers have been chosen to sort nodes in JBuilder as follows: Projects = 100, Folders = 200, Packages = 300, the default = 400, FileNodes = 500, ClassFileNodes = 600.
Overrides:
getDisplaySequence in class FileNode
Tags copied from class: Node
Returns:
An integer value specifying a grouping value.