public class DAPNode
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DAPNode.CloneMap
Clone interface.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_nameClear
The name of this variable - not www enccoded
|
protected java.lang.String |
_nameEncoded |
static org.slf4j.Logger |
log |
Constructor and Description |
---|
DAPNode()
Constructs a new
DAPNode with no name. |
DAPNode(java.lang.String n)
Constructs a new
DAPNode with name n . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a clone of this
DAPNode . |
DAPNode |
cloneDAG(DAPNode.CloneMap map)
This procedure does the actual recursive clone.
|
static DAPNode |
cloneDAG(DAPNode.CloneMap map,
DAPNode src)
This version of cloneDAG() is the primary
point of cloning.
|
java.lang.String |
getClearName()
Returns the unencoded name of the class instance.
|
java.lang.String |
getEncodedName()
Returns the WWW encoded name of the class instance.
|
DAPNode |
getParent() |
boolean |
isProject()
Check the projection state of this variable.
|
void |
setClearName(java.lang.String n)
Sets the unencoded name of the class instance.
|
void |
setEncodedName(java.lang.String n)
Sets the name of the class instance.
|
void |
setParent(DAPNode bt) |
void |
setProject(boolean state)
Set the state of this variable's projection.
|
void |
setProject(boolean state,
boolean all)
Set the state of this variable's projection.
|
void |
setProjected(boolean tf) |
public static org.slf4j.Logger log
protected java.lang.String _nameClear
protected java.lang.String _nameEncoded
public DAPNode()
DAPNode
with no name.public DAPNode(java.lang.String n)
DAPNode
with name n
.
Name is assumed to never be DAP encodedn
- the name of the variable.public void setProjected(boolean tf)
public boolean isProject()
true
, otherwise it
should return false
.true
if the variable is part of the current
projections, false
otherwise.CEEvaluator
public void setProject(boolean state, boolean all)
true
means
that this variable is part of the current projection as defined by
the current constraint expression, otherwise the current projection
for this variable should be false
.state
- true
if the variable is part of the current
projection, false
otherwise.all
- If true
, set the Project property of all the
members (and their children, and so on).CEEvaluator
public void setProject(boolean state)
true
means
that this variable is part of the current projection as defined by
the current constraint expression, otherwise the current projection
for this variable should be false
.
This is equivalent to setProjection(state
,
true
).
state
- true
if the variable is part of the current
projection, false
otherwise.CEEvaluator
public void setParent(DAPNode bt)
public DAPNode getParent()
public final java.lang.String getClearName()
public final java.lang.String getEncodedName()
public final void setEncodedName(java.lang.String n)
n
- the name of the class instance; with escapespublic void setClearName(java.lang.String n)
n
- the unencoded name of the class instance.public java.lang.Object clone()
DAPNode
. A deep copy is performed
on all data inside the variable.clone
in class java.lang.Object
DAPNode
.public static DAPNode cloneDAG(DAPNode.CloneMap map, DAPNode src) throws java.lang.CloneNotSupportedException
map
- list of previously cloned nodesjava.lang.CloneNotSupportedException
public DAPNode cloneDAG(DAPNode.CloneMap map) throws java.lang.CloneNotSupportedException
map
- list of previously cloned nodesjava.lang.CloneNotSupportedException