public interface SyntacticTerm
This interface should be inherited by any objects that will integrate into combinator expressions.
red |
red (shaver) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateCode()
Generate code for given term.
|
java.util.List<SyntacticPort> |
getInputs()
Return list of input Syntactic Ports to term.
|
int |
getOrder()
Get the sort order of term.
|
java.util.List<SyntacticPort> |
getOutputs()
Return list of output Syntactic Ports to term.
|
boolean |
hasCode()
Decide whether term can generate code representation.
|
java.lang.Integer |
inputIndex(SyntacticPort port)
Get index of given port or null.
|
java.lang.Integer |
outputIndex(SyntacticPort port)
Get index of given port or null.
|
SyntacticRank |
rank()
Get rank of term.
|
int |
sizeInputs()
Get number of inputs to term.
|
int |
sizeOutputs()
Get number of outputs to term.
|
java.util.List<SyntacticPort> getInputs()
java.util.List<SyntacticPort> getOutputs()
int sizeInputs()
int sizeOutputs()
SyntacticRank rank()
java.lang.Integer inputIndex(SyntacticPort port)
port
- to get the index of.java.lang.Integer outputIndex(SyntacticPort port)
port
- to get the index of.java.lang.String generateCode()
int getOrder()
boolean hasCode()