|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jltools.ext.jl.ast.Declarator_c
Encapsulation of the details of a declaration of a variable (field or local).
| Field Summary | |
protected Flags |
flags
|
protected Expr |
init
|
protected java.lang.String |
name
|
protected TypeNode |
type
|
| Constructor Summary | |
Declarator_c(Flags flags,
TypeNode type,
java.lang.String name,
Expr init)
|
|
| Method Summary | |
java.lang.Object |
copy()
Get the copy of the declarator. |
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. |
java.lang.String |
toString()
|
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Flags flags
protected TypeNode type
protected java.lang.String name
protected Expr init
| Constructor Detail |
public Declarator_c(Flags flags,
TypeNode type,
java.lang.String name,
Expr init)
| Method Detail |
public java.lang.Object copy()
copy in interface Copypublic Flags flags()
flags in interface Declaratorpublic Declarator flags(Flags flags)
Declaratorflags in interface Declaratorpublic Type declType()
declType in interface Declaratorpublic TypeNode type()
type in interface Declaratorpublic Declarator type(TypeNode type)
type in interface Declaratorpublic java.lang.String name()
name in interface Declaratorpublic Declarator name(java.lang.String name)
name in interface Declaratorpublic Expr init()
init in interface Declaratorpublic Declarator init(Expr init)
init in interface Declarator
public void typeCheck(TypeChecker tc)
throws SemanticException
typeCheck in interface Declaratorpublic java.lang.String toString()
toString in class java.lang.Object
public void translate(CodeWriter w,
Translator tr,
boolean field)
translate in interface Declarator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||