junc.ast
Class FieldDeclarationNode

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

public class FieldDeclarationNode
extends ClassBodyDeclarationNode

Describe class FieldDeclarationNode here.

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

Field Summary
 java.util.Vector fields
          A Symbol vector with the fields declared.
 
Fields inherited from class junc.ast.ClassBodyDeclarationNode
accessFlags, type
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
FieldDeclarationNode()
          Creates a new FieldDeclarationNode instance.
 
Method Summary
 void encodeType()
          Move ['s from the field name to the type.
 void translate(org.apache.bcel.generic.ClassGen classGen)
          Describe translate method here.
 junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
          Describe typeCheck method here.
 
Methods inherited from class junc.ast.ClassBodyDeclarationNode
isFinal, isInstance, isPrivate, isProtected, isPublic, isStatic, type
 
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

fields

public java.util.Vector fields
A Symbol vector with the fields declared. The type of the elements is VariableDeclaratorNode.

Constructor Detail

FieldDeclarationNode

public FieldDeclarationNode()
Creates a new FieldDeclarationNode instance.

Method Detail

encodeType

public void encodeType()
Move ['s from the field name to the type.

Specified by:
encodeType in class ClassBodyDeclarationNode

typeCheck

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

Specified by:
typeCheck in class ClassBodyDeclarationNode
Parameters:
stable - a SymbolTable value
Returns:
a JUnCBaseType value
Throws:
TypeCheckError - if an error occurs

translate

public void translate(org.apache.bcel.generic.ClassGen classGen)
Describe translate method here.

Specified by:
translate in class ClassBodyDeclarationNode
Parameters:
classGen - a ClassGen value