jltools.ast
Interface Declarator

All Superinterfaces:
java.lang.Cloneable, Copy
All Known Implementing Classes:
Declarator_c

public interface Declarator
extends Copy

Encapsulation of the details of a declaration of a variable (field or local).


Method Summary
 Type declType()
          Get the type of the declarator.
 Flags flags()
          Get the flags of the declarator.
 Declarator flags(Flags flags)
          Set the flags of the declarator.
 Expr init()
          Get the initializer of the declarator.
 Declarator init(Expr init)
          Set the initializer of the declarator.
 java.lang.String name()
          Get the name of the declarator.
 Declarator name(java.lang.String name)
          Set the name of the declarator.
 void translate(CodeWriter w, Translator tr, boolean field)
          Write the declarator to an output file.
 TypeNode type()
          Get the type node of the declarator.
 Declarator type(TypeNode type)
          Set the type node of the declarator.
 void typeCheck(TypeChecker tc)
          Type check the declarator.
 
Methods inherited from interface jltools.util.Copy
copy
 

Method Detail

flags

public Flags flags()
Get the flags of the declarator.

flags

public Declarator flags(Flags flags)
Set the flags of the declarator.

declType

public Type declType()
Get the type of the declarator.

type

public TypeNode type()
Get the type node of the declarator.

type

public Declarator type(TypeNode type)
Set the type node of the declarator.

name

public java.lang.String name()
Get the name of the declarator.

name

public Declarator name(java.lang.String name)
Set the name of the declarator.

init

public Expr init()
Get the initializer of the declarator.

init

public Declarator init(Expr init)
Set the initializer of the declarator.

typeCheck

public void typeCheck(TypeChecker tc)
               throws SemanticException
Type check the declarator.

translate

public void translate(CodeWriter w,
                      Translator tr,
                      boolean field)
Write the declarator to an output file.