public class NdResourceFile extends NdTreeNode
| Modifier and Type | Field and Description |
|---|---|
static FieldOneToMany<NdBinding> |
ALL_NODES |
static FieldSearchKey<JavaIndex> |
FILENAME |
static FieldLong |
HASHCODE_LAST_SCANNED |
static FieldString |
JAVA_ROOT |
static FieldLong |
SIZE_LAST_SCANNED |
static FieldLong |
TIME_LAST_SCANNED |
static FieldLong |
TIME_LAST_USED |
static StructDef<NdResourceFile> |
type |
static FieldOneToMany<NdWorkspaceLocation> |
WORKSPACE_MAPPINGS |
CHILDREN, PARENT| Constructor and Description |
|---|
NdResourceFile(Nd nd) |
NdResourceFile(Nd dom,
long address) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IPath> |
getAllWorkspaceLocations() |
IPath |
getAnyOpenWorkspaceLocation(IWorkspaceRoot root) |
NdBinding |
getBinding(int index) |
int |
getBindingCount() |
java.util.List<NdBinding> |
getBindings() |
java.util.List<NdTreeNode> |
getChildren() |
FileFingerprint |
getFingerprint() |
IPath |
getFirstWorkspaceLocation() |
IString |
getLocation() |
IString |
getPackageFragmentRoot()
Returns the absolute path to the java root for this .jar or .class file.
|
IPath |
getPath()
Returns a workspace path to this resource if possible and the absolute filesystem location if not.
|
long |
getSizeLastScanned() |
long |
getTimeLastScanned() |
long |
getTimeLastUsed() |
java.util.List<NdWorkspaceLocation> |
getWorkspaceMappings() |
boolean |
isDoneIndexing()
Returns true iff the indexer has finished writing the contents of this file to the index.
|
boolean |
isInIndex()
Determines whether this file is still in the index.
|
void |
markAsInvalid() |
void |
setFingerprint(FileFingerprint newFingerprint) |
void |
setLocation(java.lang.String filename) |
void |
setPackageFragmentRoot(char[] javaRoot) |
void |
setTimeLastUsed(long timeLastUsed) |
java.lang.String |
toString() |
getAncestorOfType, getChild, getChildrenCount, getParentBindingpublic static final FieldSearchKey<JavaIndex> FILENAME
public static final FieldOneToMany<NdBinding> ALL_NODES
public static final FieldLong TIME_LAST_USED
public static final FieldLong TIME_LAST_SCANNED
public static final FieldLong SIZE_LAST_SCANNED
public static final FieldLong HASHCODE_LAST_SCANNED
public static final FieldOneToMany<NdWorkspaceLocation> WORKSPACE_MAPPINGS
public static final FieldString JAVA_ROOT
public static final StructDef<NdResourceFile> type
public NdResourceFile(Nd dom, long address)
public NdResourceFile(Nd nd)
public java.util.List<NdTreeNode> getChildren()
public boolean isInIndex()
NdResourceFile instance is retained while the
database lock is released and reobtained, this method should be invoked to ensure that the NdResourceFile
has not been deleted in the meantime.public java.util.List<IPath> getAllWorkspaceLocations()
public IPath getFirstWorkspaceLocation()
public IPath getAnyOpenWorkspaceLocation(IWorkspaceRoot root)
public IPath getPath()
public java.util.List<NdWorkspaceLocation> getWorkspaceMappings()
public IString getLocation()
public void setLocation(java.lang.String filename)
public FileFingerprint getFingerprint()
public boolean isDoneIndexing()
public long getTimeLastScanned()
public long getSizeLastScanned()
public long getTimeLastUsed()
public void setTimeLastUsed(long timeLastUsed)
public void setFingerprint(FileFingerprint newFingerprint)
public void setPackageFragmentRoot(char[] javaRoot)
public IString getPackageFragmentRoot()
public void markAsInvalid()
public int getBindingCount()
public java.util.List<NdBinding> getBindings()
public NdBinding getBinding(int index)
public java.lang.String toString()
toString in class java.lang.Object