public class DepTreeNode extends Object implements Cloneable, Serializable
Constructor and Description |
---|
DepTreeNode(String name,
URI uri)
Object constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DepTreeNode child)
Add the specified node to this node's children.
|
void |
addAll(Collection<DepTreeNode> children) |
DepTreeNode |
clone() |
DepTreeNode |
createOrGet(String path,
URI uri)
Returns the node at the specified path location within the tree, or
creates it if it is not already in the tree.
|
DepTreeNode |
getChild(String name) |
Map<String,DepTreeNode> |
getChildren() |
IConfig |
getConfig() |
String[] |
getDefineDepArray() |
String[] |
getDependentFeatures() |
DepTreeNode |
getDescendent(String path) |
String |
getFullPathName() |
String |
getName() |
DepTreeNode |
getParent() |
String |
getParentPath() |
String[] |
getRequireDepArray() |
DepTreeNode |
getRoot() |
long |
lastModified() |
long |
lastModifiedDep()
Returns the last modified date of the dependencies for this node.
|
long |
lastModifiedDepTree()
Returns the most recent last modified date of all the dependencies that are
descendants of this node, including this node.
|
void |
overlay(DepTreeNode node)
Overlay the specified node and its descendants over this node.
|
void |
prune()
Recursively walks the node tree removing folder nodes that have not children.
|
void |
remove(DepTreeNode child)
Removes the specified child node
|
void |
removeAll()
Removes all of this node's children
|
void |
setDependencies(String[] defineDependencies,
String[] requireDependencies,
String[] dependentFeatures,
long lastModifiedFile,
long lastModifiedDep)
Specifies the dependency list of modules for the module named by this
node, along with the last modified date of the javascript file that the
dependency list was obtained from.
|
String |
toString() |
String |
toStringTree() |
public String getName()
public long lastModified()
public long lastModifiedDep()
Dependency last modified dates are used by the cache manager to determine when the entire cache must be invalidated do to changes in dependency lists which can have ripple effects across many cached responses.
public long lastModifiedDepTree()
public DepTreeNode getParent()
public DepTreeNode getRoot()
public String[] getDefineDepArray()
public String[] getRequireDepArray()
public String[] getDependentFeatures()
public String getParentPath()
public String getFullPathName()
public void add(DepTreeNode child)
child
- The node to add to this node's childrenpublic void overlay(DepTreeNode node)
node
- public void addAll(Collection<DepTreeNode> children)
public DepTreeNode createOrGet(String path, URI uri)
path
- The path name, relative to this node, of the node to return.uri
- the source URIpublic DepTreeNode getDescendent(String path)
path
- The node with the specified path relative to this node, or
nullpublic void remove(DepTreeNode child)
child
- The node to removepublic void removeAll()
public Map<String,DepTreeNode> getChildren()
public DepTreeNode getChild(String name)
name
- The name of the child nodepublic void prune()
public void setDependencies(String[] defineDependencies, String[] requireDependencies, String[] dependentFeatures, long lastModifiedFile, long lastModifiedDep)
defineDependencies
- The define() dependency list of module namesrequireDependencies
- The require() dependency list of module namesdependentFeatures
- The dependent features for the modulelastModifiedFile
- The last modified date of the javascript source filelastModifiedDep
- The last modified date of the dependency list. See
lastModifiedDep()
public String toStringTree()
public DepTreeNode clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public IConfig getConfig()
Copyright © 2011-2015 IBM. All Rights Reserved.