com.aptana.ide.editor.js.outline
Class JSOutlineItem

java.lang.Object
  extended by com.aptana.ide.views.outline.OutlineItem
      extended by com.aptana.ide.editor.js.outline.JSOutlineItem

public class JSOutlineItem
extends OutlineItem

Author:
Kevin Lindsey

Constructor Summary
JSOutlineItem(java.lang.String label, int type, IRange sourceRange, IParseNode referenceNode)
          JSOutlineItem
JSOutlineItem(java.lang.String label, int type, IRange sourceRange, IParseNode referenceNode, int childCount)
          JSOutlineItem
 
Method Summary
 void addVirtualChild(IParseNode target)
          addVirtualChild
 int getChildCount()
          getChildCount
 IParseNode[] getReferenceNodes()
          getReferenceNodes
 IParseNode[] getVirtualChildren()
          getVirtualChildren
 boolean hasVirtualChildren()
          hasVirtualChildren
 
Methods inherited from class com.aptana.ide.views.outline.OutlineItem
equals, getEndingOffset, getLabel, getLanguage, getReferenceNode, getStartingOffset, getType, hasChildren, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSOutlineItem

public JSOutlineItem(java.lang.String label,
                     int type,
                     IRange sourceRange,
                     IParseNode referenceNode)
JSOutlineItem

Parameters:
label -
type -
sourceRange -
referenceNode -

JSOutlineItem

public JSOutlineItem(java.lang.String label,
                     int type,
                     IRange sourceRange,
                     IParseNode referenceNode,
                     int childCount)
JSOutlineItem

Parameters:
label -
type -
sourceRange -
referenceNode -
childCount -
Method Detail

addVirtualChild

public void addVirtualChild(IParseNode target)
addVirtualChild

Parameters:
target -

getChildCount

public int getChildCount()
getChildCount

Overrides:
getChildCount in class OutlineItem
Returns:
child count

getReferenceNodes

public IParseNode[] getReferenceNodes()
getReferenceNodes

Returns:
returns an array composed of the reference node and any virtual child nodes

getVirtualChildren

public IParseNode[] getVirtualChildren()
getVirtualChildren

Returns:
virtual children array

hasVirtualChildren

public boolean hasVirtualChildren()
hasVirtualChildren

Returns:
returns true if this item has virtual children