public class FfunctionType extends Xnode
LHS, RHS, UNDEF_DEPTH
Constructor and Description |
---|
FfunctionType(Xnode node)
Basic ctor from Xnode.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameters(Xnode name)
Add a name element to the parameters list.
|
void |
addParameters(Xnode ref,
Xnode name)
Add a name element to the parameters list before the referenced element.
|
FfunctionType |
cloneNode()
A new object FfunctionType that is the clone of the current object.
|
java.util.List<Xnode> |
getParameters()
Get the list of all parameters name node.
|
java.util.List<java.lang.String> |
getParamsNames()
Get a list of string representing the function parameters.
|
java.lang.String |
getResultName()
Get the function result name.
|
java.lang.String |
getReturnType()
Get the function return type.
|
boolean |
hasParam(java.lang.String paramName)
Check if a parameter is part of the function definition.
|
boolean |
isElemental()
Check whether function has the elemental attribute set to true.
|
boolean |
isInternal()
Check whether function is internal.
|
boolean |
isProgram()
Check whether function is the program function.
|
boolean |
isPure()
Check whether function has the pure attribute set to true.
|
boolean |
isRecursive()
Check whether function is recursive.
|
java.lang.String |
toString()
Return a brief description of the Xnode.
|
ancestor, append, append, body, child, children, cloneRawNode, compareFirstChildValues, compareOptionalValues, compareValues, constructRepresentation, copyAttribute, copyEnhancedInfo, delete, deleteWithSiblings, depth, element, equals, filename, findParentFunction, findParentModule, firstChild, getAttribute, getBooleanAttribute, getType, hasAttribute, hasBody, hashCode, hasSameParentBlock, insert, insert, insertAfter, insertBefore, isDeleted, isDirectSibling, isNestedIn, lastChild, lineNo, matchAll, matchAllAncestor, matchAllAncestor, matchAncestor, matchDescendant, matchDirectDescendant, matchDirectDescendant, matchSeq, matchSibling, nextSibling, opcode, prevSibling, removeAttribute, setAttribute, setBooleanAttribute, setFilename, setLine, setType, setValue, value
public FfunctionType(Xnode node)
node
- Raw node.public java.lang.String getResultName()
public boolean isRecursive()
public boolean isInternal()
public java.lang.String getReturnType()
public boolean isProgram()
public boolean isPure()
public boolean isElemental()
public java.util.List<Xnode> getParameters()
public void addParameters(Xnode name)
name
- The name element to add.public void addParameters(Xnode ref, Xnode name)
ref
- Referenced element. New element will be added before.name
- The name element to add.public java.util.List<java.lang.String> getParamsNames()
public FfunctionType cloneNode()
public boolean hasParam(java.lang.String paramName)
paramName
- Parameter's name.