| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.Exp
edu.ksu.cis.projects.bogor.ast.NewArrayExp
public final class NewArrayExp
New array exp AST.
| Field Summary | 
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Exp | 
|---|
TYPE | 
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node | 
|---|
ILLEGAL_LOCAL_ID_CHAR | 
| Constructor Summary | |
|---|---|
NewArrayExp(ASTType type,
            List<? extends Exp> lengths,
            int rank)
Default constructor.  | 
|
| Method Summary | |
|---|---|
 NewArrayExp | 
clone()
Clones this object (deep clone); including location info.  | 
 void | 
dispose()
Disposes type and lengths.  | 
 Exp | 
getLength(int index)
Gets a length at a specified index.  | 
 int | 
getLengthCount()
Gets the number of lengths.  | 
 int | 
getRank()
Gets the rank.  | 
 ASTType | 
getType()
Gets the type.  | 
 void | 
setLengths(List<? extends Exp> newLengths)
Sets the lengths.  | 
 void | 
setRank(int newRank)
Sets the rank.  | 
 void | 
setType(ASTType newType)
Sets the type.  | 
 String | 
toString()
Returns the string representation of this object.  | 
 void | 
visit(ASTVisitor visitor)
 | 
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Exp | 
|---|
getParent, setParent | 
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node | 
|---|
getLocationInfo, getProperty, putProperty, setLocationInfo | 
| Methods inherited from class java.lang.Object | 
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public NewArrayExp(ASTType type,
                   List<? extends Exp> lengths,
                   int rank)
type - The type. Must be non-null. Must not be instance of
            ASTArrayType.lengths - The lengths. Must be non-null. Each element must be instance
            of Exp. The number of elements must be greater than zero.rank - The rank. Must be greater than zero. At least equal to the
            number of lengths.| Method Detail | 
|---|
public Exp getLength(int index)
index - The index of the length. Must be between 0 and
            getLengthCount() - 1, inclusive.
public int getLengthCount()
public void setLengths(List<? extends Exp> newLengths)
newLengths - The new lengths. Must be non-null. Each element must be
            instance of Exp. The number of elements must be greater than
            zero.public void setRank(int newRank)
newRank - The new rank. Must be greater than zero.public int getRank()
public void setType(ASTType newType)
newType - The new type. Must be non-null. Must not be instance of
            ASTArrayType.public ASTType getType()
public NewArrayExp clone()
clone in class Exppublic void dispose()
dispose in interface Disposabledispose in class Exppublic String toString()
toString in class Nodepublic void visit(ASTVisitor visitor)
visit in class Node
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||