public class Context
extends java.lang.Object
Constructor and Description |
---|
Context(Node root) |
Context(Node node,
Context parentContext) |
Modifier and Type | Method and Description |
---|---|
int |
contextSimilarity(Context that) |
boolean |
equals(Context that) |
void |
excludeFromSearch(boolean exclude) |
java.util.List<Context> |
getChildContexts() |
int |
getDepth() |
int |
getId() |
int |
getIndex() |
long |
getLabel() |
Node |
getNode() |
Context |
getParentContext() |
int |
getPosition() |
java.util.List<Context> |
getSiblingContexts() |
boolean |
isExcluded() |
boolean |
isWithin(Context context) |
int |
positionDistance(Context that) |
java.lang.String |
toString() |
public Context(Node root)
public java.util.List<Context> getChildContexts()
public java.util.List<Context> getSiblingContexts()
public int contextSimilarity(Context that)
public boolean equals(Context that)
public int positionDistance(Context that)
public int getPosition()
public int getDepth()
public boolean isWithin(Context context)
public Context getParentContext()
public long getLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public int getIndex()
public int getId()
public Node getNode()
public boolean isExcluded()
public void excludeFromSearch(boolean exclude)