Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

ArrayTypeNode Class Reference

Inheritance diagram for ArrayTypeNode:

Inheritance graph
[legend]
Collaboration diagram for ArrayTypeNode:

Collaboration graph
[legend]
List of all members.

Public Methods

 ArrayTypeNode (TypeNode n, int d, boolean isErr, Token tok, int iL)
boolean equals (Object o)

Constructor & Destructor Documentation

ArrayTypeNode::ArrayTypeNode ( TypeNode n,
int d,
boolean isErr,
Token tok,
int iL ) [inline]
 

Parameters:
n   is the parser node of the element type
d   is the dimension of the aggregate type (0, when unknown)
isErr   indicates whether the node is an error node or not
tok   points to the token designating the aggregate type in the file @iL is the include Level at the time tok was encountered

Definition at line 38 of file ArrayTypeNode.java.

00038                                                                          {
00039       super(n,"_"+n.getLocalName()+"ARRAY",isErr,tok,iL);
00040       iKind=ARRAYTYPENODE;
00041       setDimension(d);
00042    }


Member Function Documentation

boolean ArrayTypeNode::equals ( Object o ) [inline]
 

tells whether two arrays are equal i.e. they contain elements of the same type and have the same dimension.

Definition at line 48 of file ArrayTypeNode.java.

00048                                    {
00049       if (o != null && o instanceof ArrayTypeNode) {
00050          if (!elemType.equals(((ArrayTypeNode) o).elemType)) return false;
00051          if (getDimension()!=((ArrayTypeNode) o).getDimension()) return false;
00052          return true;
00053       } else return false;
00054    }   


The documentation for this class was generated from the following file:
Generated at Fri May 31 19:23:43 2002 for Jonathan by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001