public class Primitive
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Primitive.Kind |
Modifier and Type | Method and Description |
---|---|
void |
addParentReference(PrimitiveAND parent,
java.lang.String referenceName)
Registers a reference made from the parent primitive to the current primitive.
|
java.util.Set<java.lang.String> |
getAttrNames()
Returns names of the public attributes of the primitive.
|
Primitive.Kind |
getKind() |
java.lang.String |
getName() |
int |
getParentCount()
Returns the number of primitives (parents) that make references to the current primitive (have
parameters of the corresponding type).
|
int |
getParentReferenceCount()
Returns the total number of references made to the current primitive from parent primitives
(the total number of parameters of all parent primitives which have the corresponding type).
|
java.util.Collection<PrimitiveReference> |
getParents()
Returns the collection of primitives (parents) that make references to the current primitive
(have parameters of the corresponding type).
|
Type |
getReturnType() |
boolean |
isOrRule() |
boolean |
isRoot()
Checks whether the current primitive is a root primitive.
|
public void addParentReference(PrimitiveAND parent, java.lang.String referenceName)
parent
- Parent primitive.referenceName
- The name of the reference (parameter) made from the parent primitive to
the current primitive.public final java.lang.String getName()
public final Primitive.Kind getKind()
public final boolean isOrRule()
public final Type getReturnType()
public final java.util.Set<java.lang.String> getAttrNames()
public final boolean isRoot()
public final java.util.Collection<PrimitiveReference> getParents()
public final int getParentCount()
public final int getParentReferenceCount()