org.aspectj.org.eclipse.jdt.internal.core
Class CompilationUnitElementInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.OpenableElementInfo
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. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
CompilationUnitElementInfo
public CompilationUnitElementInfo()
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)