public final class PrimitiveReference
extends java.lang.Object
PrimitiveReference
class describes references to the current primitive made from another
primitive (parent). There may be several reference since a primitive (AND rule) can have
several parameters of the same type.Modifier and Type | Field and Description |
---|---|
java.util.Set<java.lang.String> |
refNames |
PrimitiveAND |
source |
Primitive |
target |
Constructor and Description |
---|
PrimitiveReference(PrimitiveAND source,
Primitive target)
Constructs a reference made from the source (parent) primitive to the target primitive.
|
PrimitiveReference(PrimitiveAND source,
Primitive target,
java.util.Set<java.lang.String> refNames)
Additional constructor for making modified copies.
|
Modifier and Type | Method and Description |
---|---|
void |
addReference(java.lang.String referenceName)
Registers a reference from the parent primitive to the current primitive.
|
java.lang.String |
getName()
Returns the name of the primitive that makes a reference to the current primitive.
|
int |
getReferenceCount()
Returns the number of references made from the parent primitive to the current primitive.
|
java.util.Set<java.lang.String> |
getReferenceNames()
Returns names of the references (parameter names) made from the parent primitive
to the current primitive.
|
PrimitiveAND |
getSource()
Returns the primitive the refers to the current primitive.
|
Primitive |
getTarget()
Returns the primitive the reference points to (current primitive).
|
PrimitiveAND |
resolve()
Resolves the reference and returns the source primitive that has all references resolved.
|
public final PrimitiveAND source
public final Primitive target
public final java.util.Set<java.lang.String> refNames
public PrimitiveReference(PrimitiveAND source, Primitive target)
public PrimitiveReference(PrimitiveAND source, Primitive target, java.util.Set<java.lang.String> refNames)
public void addReference(java.lang.String referenceName)
public java.lang.String getName()
public PrimitiveAND getSource()
public Primitive getTarget()
public int getReferenceCount()
public java.util.Set<java.lang.String> getReferenceNames()
public PrimitiveAND resolve()