org.eclipse.cdt.internal.ui.includebrowser
Class IBNode

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.includebrowser.IBNode
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class IBNode
extends java.lang.Object
implements org.eclipse.core.runtime.IAdaptable

Represents a node in the include browser


Constructor Summary
IBNode(IBNode parent, IBFile represents, IBFile fileOfDirective, int charOffset, int length, long timestamp)
          Creates a new node for the include browser
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 org.eclipse.cdt.core.model.ICProject getCProject()
           
 int getDirectiveCharacterOffset()
           
 IBFile getDirectiveFile()
           
 int getDirectiveLength()
           
 java.lang.String getDirectiveName()
           
 IBNode getParent()
          Returns the parent node or null for the root node.
 IBFile getRepresentedFile()
          Returns the translation unit that requests the inclusion
 org.eclipse.cdt.core.index.IIndexFileLocation getRepresentedIFL()
           
 org.eclipse.core.runtime.IPath getRepresentedPath()
           
 org.eclipse.cdt.core.model.ITranslationUnit getRepresentedTranslationUnit()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isActiveCode()
          Returns whether this inclusion is actually performed with the current set of macro definitions.
 boolean isRecursive()
           
 boolean isSystemInclude()
          Returns whether this is a system include (angle-brackets).
 void setIsActiveCode(boolean isActiveCode)
          Defines whether the inclusion appears in active code.
 void setIsSystemInclude(boolean isSystemInclude)
          Defines whether this is a system include (angle-brackets).
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IBNode

public IBNode(IBNode parent,
              IBFile represents,
              IBFile fileOfDirective,
              int charOffset,
              int length,
              long timestamp)
Creates a new node for the include browser

Method Detail

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 IBNode getParent()
Returns the parent node or null for the root node.


getRepresentedFile

public IBFile getRepresentedFile()
Returns the translation unit that requests the inclusion


isSystemInclude

public boolean isSystemInclude()
Returns whether this is a system include (angle-brackets).


setIsSystemInclude

public void setIsSystemInclude(boolean isSystemInclude)
Defines whether this is a system include (angle-brackets).


isActiveCode

public boolean isActiveCode()
Returns whether this inclusion is actually performed with the current set of macro definitions. This is true unless the include directive appears within a conditional compilation construct (#ifdef/#endif).


setIsActiveCode

public void setIsActiveCode(boolean isActiveCode)
Defines whether the inclusion appears in active code.


isRecursive

public boolean isRecursive()

getDirectiveCharacterOffset

public int getDirectiveCharacterOffset()

getDirectiveLength

public int getDirectiveLength()

getDirectiveFile

public IBFile getDirectiveFile()

getDirectiveName

public java.lang.String getDirectiveName()

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

getRepresentedTranslationUnit

public org.eclipse.cdt.core.model.ITranslationUnit getRepresentedTranslationUnit()

getRepresentedPath

public org.eclipse.core.runtime.IPath getRepresentedPath()

getRepresentedIFL

public org.eclipse.cdt.core.index.IIndexFileLocation getRepresentedIFL()

getTimestamp

public long getTimestamp()

getCProject

public org.eclipse.cdt.core.model.ICProject getCProject()