org.aspectj.org.eclipse.jdt.internal.core
Class CompilationUnitElementInfo

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.OpenableElementInfo
      extended by org.aspectj.org.eclipse.jdt.internal.core.CompilationUnitElementInfo
Direct Known Subclasses:
ASTHolderCUInfo

public class CompilationUnitElementInfo
extends OpenableElementInfo


Field Summary
 java.util.HashMap annotationPositions
           
protected  IJavaElement[] children
          Collection of handles of immediate children of this object.
protected  int sourceLength
          The length of this compilation unit's source code String
protected  long timestamp
          Timestamp of original resource at the time this element was opened or last updated.
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.OpenableElementInfo
isStructureKnown
 
Constructor Summary
CompilationUnitElementInfo()
           
 
Method Summary
 void addAnnotationPositions(IJavaElement handle, long[] positions)
           
 void addChild(IJavaElement child)
           
 java.lang.Object clone()
           
 IJavaElement[] getChildren()
           
 int getSourceLength()
          Returns the length of the source string.
protected  ISourceRange getSourceRange()
           
 void removeChild(IJavaElement child)
           
 void setChildren(IJavaElement[] children)
           
 void setSourceLength(int newSourceLength)
          Sets the length of the source string.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.OpenableElementInfo
isStructureKnown, setIsStructureKnown
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceLength

protected int sourceLength
The length of this compilation unit's source code String


timestamp

protected long timestamp
Timestamp of original resource at the time this element was opened or last updated.


annotationPositions

public java.util.HashMap annotationPositions

children

protected IJavaElement[] children
Collection of handles of immediate children of this object. This is an empty array if this element has no children.

Constructor Detail

CompilationUnitElementInfo

public CompilationUnitElementInfo()
Method Detail

addAnnotationPositions

public void addAnnotationPositions(IJavaElement handle,
                                   long[] positions)

getSourceLength

public int getSourceLength()
Returns the length of the source string.


getSourceRange

protected ISourceRange getSourceRange()

setSourceLength

public void setSourceLength(int newSourceLength)
Sets the length of the source string.


addChild

public void addChild(IJavaElement child)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getChildren

public IJavaElement[] getChildren()

removeChild

public void removeChild(IJavaElement child)

setChildren

public void setChildren(IJavaElement[] children)