org.eclipse.cdt.internal.ui.callhierarchy
Class CHNode
java.lang.Object
org.eclipse.cdt.internal.ui.callhierarchy.CHNode
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
- CHMultiDefNode
public class CHNode
- extends java.lang.Object
- implements org.eclipse.core.runtime.IAdaptable
Represents a node in the include browser
Constructor Summary |
CHNode(CHNode parent,
org.eclipse.cdt.core.model.ITranslationUnit fileOfReferences,
long timestamp,
org.eclipse.cdt.core.model.ICElement decl)
Creates a new node for the include browser |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
CHNode
public CHNode(CHNode parent,
org.eclipse.cdt.core.model.ITranslationUnit fileOfReferences,
long timestamp,
org.eclipse.cdt.core.model.ICElement decl)
- Creates a new node for the include browser
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getParent
public CHNode getParent()
- Returns the parent node or
null
for the root node.
isRecursive
public boolean isRecursive()
getReferenceCount
public int getReferenceCount()
getReference
public CHReferenceInfo getReference(int idx)
getRepresentedDeclaration
public org.eclipse.cdt.core.model.ICElement getRepresentedDeclaration()
getTimestamp
public long getTimestamp()
isMacro
public boolean isMacro()
isVariable
public boolean isVariable()
getFirstReferenceOffset
public int getFirstReferenceOffset()
addReference
public void addReference(CHReferenceInfo info)
getFileOfReferences
public org.eclipse.cdt.core.model.ITranslationUnit getFileOfReferences()
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
isMultiDef
public boolean isMultiDef()
getOneRepresentedDeclaration
public org.eclipse.cdt.core.model.ICElement getOneRepresentedDeclaration()
isInitializer
public boolean isInitializer()
setInitializer
public void setInitializer(boolean isInitializer)
sortReferencesByOffset
public void sortReferencesByOffset()