gov.llnl.babel.ast

Class ArrayType

Known Direct Subclasses:
RArrayType

public class ArrayType
extends Type

Array of any FixedType, Extendable, or Enumeration.

Field Summary

Fields inherited from class gov.llnl.babel.ast.ASTNode

ILLEGAL_NODEID

Constructor Summary

ArrayType(ParseTreeNode node, ASTNode parent)

Method Summary

Object
accept(Visitor v, Object data)
int
getDimension()
Type
getScalarType()
String
getTypeName()
boolean
isColMajor()
boolean
isPacked()
boolean
isRowMajor()
void
setDimension(int dim)
boolean
setOrientation(char c)
void
setScalarType(Type t)
String
toString()

Methods inherited from class gov.llnl.babel.ast.Type

getTypeName

Methods inherited from class gov.llnl.babel.ast.ASTNode

accept, getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry

Constructor Details

ArrayType

public ArrayType(ParseTreeNode node,
                 ASTNode parent)

Method Details

accept

public Object accept(Visitor v,
                     Object data)
Overrides:
accept in interface ASTNode

getDimension

public int getDimension()

getScalarType

public Type getScalarType()

getTypeName

public String getTypeName()
Overrides:
getTypeName in interface Type

isColMajor

public boolean isColMajor()

isPacked

public boolean isPacked()

isRowMajor

public boolean isRowMajor()

setDimension

public void setDimension(int dim)

setOrientation

public boolean setOrientation(char c)

setScalarType

public void setScalarType(Type t)

toString

public String toString()