Package com._1c.g5.v8.dt.common
Interface IEObjectTrie
-
- All Known Implementing Classes:
EObjectTrie
public interface IEObjectTrie
The interface of the auxiliary trie to storeEObject
's. The keys (or paths) of the trie are qualified names.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IEObjectTrie.INode
TheIEObjectTrie
node.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
belongsTo(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Checks whether the special path belongs to thisIEObjectTrie
.Collection<IEObjectTrie.INode>
getChildren(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Gets the children of the trie node achievable by the given path.IEObjectTrie.INode
getNode(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Gets the trie node associated with the given path.Set<String>
getRootOutgoingEdges()
Gets the root outgoing edges.boolean
hasChildren(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Returnstrue
if the trie node achievable by the given path has children.boolean
remove(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Deletes the trie node associated with the given path.
-
-
-
Method Detail
-
getNode
IEObjectTrie.INode getNode(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Gets the trie node associated with the given path.- Parameters:
qualifiedName
- the given path, can not benull
- Returns:
- the node associated with the given path, may be
null
if no node achievable by the given path
-
getRootOutgoingEdges
Set<String> getRootOutgoingEdges()
Gets the root outgoing edges.- Returns:
- the root outer edges, can not be
null
-
getChildren
Collection<IEObjectTrie.INode> getChildren(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Gets the children of the trie node achievable by the given path.- Parameters:
qualifiedName
- the given path, can not benull
- Returns:
- the children of the trie node, can not be
null
-
hasChildren
boolean hasChildren(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Returnstrue
if the trie node achievable by the given path has children.- Parameters:
qualifiedName
- the given path, can not benull
- Returns:
true
if the trie node achievable by the given path has children.
-
belongsTo
boolean belongsTo(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Checks whether the special path belongs to thisIEObjectTrie
.- Parameters:
qualifiedName
- the special path, can not benull
- Returns:
true
if the special path belongs to thisIEObjectTrie
andfalse
otherwise
-
remove
boolean remove(org.eclipse.xtext.naming.QualifiedName qualifiedName)
Deletes the trie node associated with the given path.- Parameters:
qualifiedName
- the given path, can not benull
- Returns:
true
if node associated with the given path was deleted,false
otherwise
-
-