public class SignalTreeExploring
extends java.lang.Object
Constructor and Description |
---|
SignalTreeExploring() |
Modifier and Type | Method and Description |
---|---|
long |
getBody(long node)
Get the expression of process (body) of a model.
|
long |
getCallToIn(long name,
long modelNode)
Getting a call in a body of a process.
|
DeclarationValue |
getDeclaration(long modelNode,
IdentifierKind kind)
Get the father of the declaration tree of signals according to the kind parameter
|
long |
getDeclarationWithoutType(long node)
Returns the declaration of the signal/constant without its type from a complete declaration.
|
long |
getDescription(long node)
Returns the description of a model: process, function, action, node
|
java.lang.String |
getExternalValue(long node)
Returns the (first) string of "external" tree.
|
java.lang.String |
getIdentStr(long node)
Returns the string associated with a signal (p) when it is an identifier, or an access to an element of array or
an access to a field of a structure, or null otherwise.
|
long |
getInitExpr(long node)
Returns the expression of the initial value associated with a signal declaration.
|
long |
getInputs(long modelNode)
Returns the list of the inputs of a model.
|
long |
getInputsOutputs(long modelNode)
Returns the tree composed of the inputs/outputs of model.
|
long |
getInterface(long modelNode)
Returns the interface node of a model.
|
long |
getIthModel(long modelNode,
int index)
Returns the i-th local model of a model
|
long |
getLocalDeclarations(long modelNode)
Returns the local declarations of a model.
|
long |
getModelFather(long modelNode)
Returns the father trees of a process.
|
long |
getModelInWhich(long node)
Get the model in which the operand tree is.
|
long |
getModelName(long node)
Returns the name of a model as a node.
|
java.lang.String |
getModelNameStr(long node)
Returns the name of a model as a string.
|
long |
getNameCalledModel(long callNode)
Getting name of a model for a call.
|
long |
getNameOfDeclaration(long declNode)
Returns the name of the signal/constant from a declaration.
|
int |
getNbInputs(long modelNode)
Returns the number of inputs of a model.
|
int |
getNbOutputs(long modelNode)
Returns the number of outputs of a model.
|
int |
getNbParameters(long modelNode)
Returns the number of parameters of a model.
|
long |
getNilTree()
Returns the NIL tree representation.
|
int |
getOperatorArity(int opValue)
Returns the arity of an operator.
|
long |
getOutputs(long modelNode)
Returns the list of the outputs of a model.
|
long |
getParameters(long modelNode)
Returns the list of the parameters of a model.
|
long |
getPragmas(long modelNode)
Returns the list of the pragmas of a model.
|
PragmaValues |
getPragmaValues(long pragmaNode)
Getting the definition of a pragma.
|
long |
getRootTree(long node)
Getting root of a tree.
|
long |
getSpec(long modelNode)
Returns the external graph of a model.
|
TypeValue |
getType(long declNode)
Returns the value of type for a declaration of a signal/constant or a list declarations (in this case, it takes
the first element of the list).
|
DeclarationValue |
n_getDeclaration(long node,
int kind) |
public long getBody(long node)
modelNode
- the address of a node that represents a model (Assumed).public long getCallToIn(long name, long modelNode)
name
- an identifier representing the name of the called model (assumed).modelNode
- a node representing a model (assumed) in which the search is done.public DeclarationValue n_getDeclaration(long node, int kind)
public DeclarationValue getDeclaration(long modelNode, IdentifierKind kind)
modelNode
- a Signal model (assumed)kind
- the kind of signal/constant (local, parameter, input, or output)public long getDeclarationWithoutType(long node)
declNode
- the node representing the declarationpublic long getDescription(long node)
modelNode
- the model from which we want the descriptionpublic java.lang.String getExternalValue(long node)
externalNode
- the external nodepublic java.lang.String getIdentStr(long node)
idNode
- the node representing the identifierpublic long getInitExpr(long node)
declNode
- the node representing the signal declaration.public long getInputs(long modelNode)
modelNode
- the node representing a model (Assumed)public long getInputsOutputs(long modelNode)
modelNode
- the node representing a model (Assumed)public long getInterface(long modelNode)
modelNode
- the node representing a model (Assumed)public long getIthModel(long modelNode, int index)
modelNode
- the node representing a model (Assumed)i
- the index of the modelpublic long getLocalDeclarations(long modelNode)
modelNode
- the node representing a model (Assumed)public long getModelFather(long modelNode)
modelNode
- the node representing a model (Assumed)public long getModelInWhich(long node)
node
- the operand tree nodepublic long getModelName(long node)
node
- the operand tree nodepublic java.lang.String getModelNameStr(long node)
node
- the operand tree nodepublic long getNameCalledModel(long callNode)
calledNode
- a call object (assumed).public long getNameOfDeclaration(long declNode)
declNode
- a declaration node (assumed).declNode
.public int getNbInputs(long modelNode)
modelNode
- a node representing a process (assumed).modelNode
.public int getNbOutputs(long modelNode)
modelNode
- a node representing a process (assumed).modelNode
.public int getNbParameters(long modelNode)
modelNode
- a node representing a process (assumed).modelNode
.public long getNilTree()
public int getOperatorArity(int opValue)
op
- SIGNAL operatorop
.public long getOutputs(long modelNode)
modelNode
- a model (assumed).modelNode
.public long getParameters(long modelNode)
modelNode
- a model (assumed).modelNode
.public long getPragmas(long modelNode)
modelNode
- a model (assumed).modelNode
.public PragmaValues getPragmaValues(long pragmaNode)
pragmaNode
- the node representing a pragma (Assumed).public long getRootTree(long node)
node
- a node in the AST.public long getSpec(long modelNode)
modelNode
- a node representing a model (assumed).modelNode
.public TypeValue getType(long declNode)
declNode
- a node assumed to be a declaration or a list of declarations of signals/constants.