junc.ast
Class ClassDeclarationNode

java.lang.Object
  |
  +--antlr.BaseAST
        |
        +--antlr.CommonAST
              |
              +--junc.ast.JUnCASTNode
                    |
                    +--junc.ast.TypeDeclarationNode
                          |
                          +--junc.ast.ClassDeclarationNode
All Implemented Interfaces:
antlr.collections.AST, java.io.Serializable

public class ClassDeclarationNode
extends TypeDeclarationNode

Describe class ClassDeclarationNode here.

Version:
1.0
Author:
Diwaker Gupta
See Also:
Serialized Form

Field Summary
 junc.symtab.Symbol superClassName
          Describe variable superClassName here.
 
Fields inherited from class junc.ast.TypeDeclarationNode
accessFlags, body, interfaces, isRooted, name
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
ClassDeclarationNode()
          Creates a new ClassDeclarationNode instance.
 
Method Summary
 void translate()
          Describe translate method here.
 junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
          Describe typeCheck method here.
 
Methods inherited from class junc.ast.JUnCASTNode
getColumnNumber, getLineNumber, setColumnNumber, setLineNumber
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize, initialize, setText, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

superClassName

public junc.symtab.Symbol superClassName
Describe variable superClassName here.

Constructor Detail

ClassDeclarationNode

public ClassDeclarationNode()
Creates a new ClassDeclarationNode instance.

Method Detail

typeCheck

public junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
                                  throws TypeCheckError
Describe typeCheck method here.

Overrides:
typeCheck in class TypeDeclarationNode
Parameters:
stable - a SymbolTable value
Returns:
a JUnCBaseType value
Throws:
TypeCheckError - if an error occurs

translate

public void translate()
Describe translate method here.

Specified by:
translate in class TypeDeclarationNode