public class FbasicType extends Xnode
LHS, RHS, UNDEF_DEPTH
Constructor and Description |
---|
FbasicType(Xnode node)
Element standard ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDimension(Xnode index) |
void |
addDimension(Xnode index,
int position)
Add a dimension to the basic type.
|
FbasicType |
cloneNode()
Clone the current element with all its children.
|
int |
getDimensions()
Get the array dimensions.
|
Xnode |
getDimensions(int index)
Get the indexRange object for the given dimension.
|
Intent |
getIntent()
Get the intent of the type.
|
Xnode |
getKind()
Get the kind element.
|
Xnode |
getLength()
Get the len element.
|
java.lang.String |
getRef()
Get ref attribute value.
|
boolean |
hasIntent()
Check whether the type has an intent.
|
boolean |
hasKind()
Check whether the type has a kind element.
|
boolean |
hasLength()
Check whether the type has a length element.
|
boolean |
isAllAssumedShape()
Check if the array type is specified with deferred dimension or not.
|
boolean |
isAllocatable()
Check whether the type is allocatable.
|
boolean |
isArray()
Check whether the type is an array type.
|
boolean |
isExternal()
Check whether the type is external.
|
boolean |
isIntrinsic()
Check whether the type is intrinsic.
|
boolean |
isOptional()
Check whether the type is optional.
|
boolean |
isParameter()
Check whether the type is a parameter.
|
boolean |
isPointer()
Check whether the type is a pointer.
|
boolean |
isPrivate()
Check whether the type is private.
|
boolean |
isPublic()
Check whether the type is public.
|
boolean |
isSave()
Check whether the type is save.
|
boolean |
isTarget()
Check whether the type is a target.
|
void |
removeDimension(java.util.List<java.lang.Integer> keptDimensions)
Remove the dimensions not in the given list.
|
void |
resetDimension()
Remove all dimension from the type
|
void |
setIntent(Intent value)
Set the intent of the type.
|
void |
setRef(java.lang.String value)
Set the value of ref attribute.
|
java.lang.String |
toString()
Return a brief description of the FbasicType.
|
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 FbasicType(Xnode node)
node
- Raw node.public Xnode getDimensions(int index)
index
- The position of the dimension. For the first dimension, index
is 0, for the second is 1 and so on.public boolean isArray()
public boolean hasLength()
public Xnode getLength()
public boolean hasKind()
public Xnode getKind()
public int getDimensions()
public java.lang.String getRef()
public void setRef(java.lang.String value)
value
- New value of ref attribute.public boolean isPublic()
public boolean isPrivate()
public boolean isPointer()
public boolean isTarget()
public boolean isExternal()
public boolean isIntrinsic()
public boolean isOptional()
public boolean isSave()
public boolean isParameter()
public boolean isAllocatable()
public boolean hasIntent()
public Intent getIntent()
public void setIntent(Intent value)
value
- Intent value to be set.public void resetDimension()
public void removeDimension(java.util.List<java.lang.Integer> keptDimensions)
keptDimensions
- List of dimension index to be kept.public void addDimension(Xnode index)
public void addDimension(Xnode index, int position)
index
- Index element to add as the new dimension.position
- Position compared to already existing element. If -1,
dimension is added at the end.public boolean isAllAssumedShape()
public FbasicType cloneNode()
Xnode