|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openjava.ptree.ParseTreeObject | +--openjava.ptree.NonLeaf | +--openjava.ptree.FieldDeclaration
The FieldDeclaration class presents for node of parse tree. FieldDeclaration := ModifierList TypeName VariableDeclarator SEMI
Fields inherited from class openjava.ptree.ParseTreeObject |
debugFlag,
debugLevel,
LN,
out,
writerStack |
Fields inherited from interface openjava.ptree.MemberDeclaration |
CONSTRUCTOR,
FIELD,
METHOD,
STATICINIT,
STATICINITIALIZER,
TYPE |
Constructor Summary | |
FieldDeclaration(ModifierList e0,
TypeName e1,
java.lang.String e2,
VariableInitializer e3)
|
|
FieldDeclaration(ModifierList e0,
TypeName e1,
VariableDeclarator e2)
Allocates this object |
Method Summary | |
void |
accept(ParseTreeVisitor v)
Accepts a ParseTreeVisitor object as the role of a
Visitor in the Visitor pattern, as the role of an Element in the
Visitor pattern. |
VariableInitializer |
getInitializer()
Gets variable initializer of this field. |
ModifierList |
getModifiers()
Gets modifier list of this field. |
java.lang.String |
getName()
Gets variable name of this field. |
java.util.Hashtable |
getSuffixes()
|
TypeName |
getTypeSpecifier()
Gets type specifier of this field variable. |
java.lang.String |
getVariable()
Gets variable name of this field. |
VariableDeclarator |
getVariableDeclarator()
Gets variable declarator of this field |
void |
setInitializer(VariableInitializer vinit)
Gets variable initializer of this field. |
void |
setModifiers(ModifierList modifs)
Sets modifier list of this field. |
void |
setSuffixes(java.util.Hashtable suffixes)
|
void |
setTypeSpecifier(TypeName tspec)
Sets type specifier of this field variable. |
void |
setVariable(java.lang.String name)
Sets variable name of this field. |
void |
setVariableDeclarator(VariableDeclarator vdeclr)
Sets type specifier of this field variable. |
void |
writeCode()
Overrides writing code method |
Methods inherited from class openjava.ptree.NonLeaf |
childrenAccept,
elementAt,
equals,
getComment,
getContents,
getLength,
makeRecursiveCopy,
replaceChildWith,
set,
set,
set,
set,
set,
set,
set,
set,
set,
setComment,
setElementAt |
Methods inherited from class openjava.ptree.ParseTreeObject |
clone,
eq,
eq,
equal,
flushPrintWriter,
getDebugFlag,
getNest,
getObjectID,
getParent,
getPrintWriter,
getTab,
hashCode,
lastObjectID,
makeCopy,
popNest,
popPrintWriter,
pushNest,
pushPrintWriter,
replace,
setDebugFlag,
setDebugLevel,
setNest,
setParent,
setPrintStream,
setTab,
toFlattenString,
toString,
writeDebug,
writeDebugL,
writeDebugLln,
writeDebugln,
writeDebugLR,
writeDebugR,
writeDebugRln,
writeTab |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public FieldDeclaration(ModifierList e0, TypeName e1, VariableDeclarator e2)
public FieldDeclaration(ModifierList e0, TypeName e1, java.lang.String e2, VariableInitializer e3)
Method Detail |
public void writeCode()
public ModifierList getModifiers()
public void setModifiers(ModifierList modifs)
modifs
- modifiers to setpublic TypeName getTypeSpecifier()
public void setTypeSpecifier(TypeName tspec)
tspec
- type specifier to setpublic VariableDeclarator getVariableDeclarator()
VariableDeclarator
public void setVariableDeclarator(VariableDeclarator vdeclr)
vdeclr
- variable declarator to setpublic java.lang.String getVariable()
public java.lang.String getName()
public void setVariable(java.lang.String name)
name
- identifier of field variablepublic VariableInitializer getInitializer()
public void setInitializer(VariableInitializer vinit)
public void setSuffixes(java.util.Hashtable suffixes)
public java.util.Hashtable getSuffixes()
public void accept(ParseTreeVisitor v) throws ParseTreeException
ParseTreeVisitor
object as the role of a
Visitor in the Visitor pattern, as the role of an Element in the
Visitor pattern.
This invoke an appropriate visit()
method on the
accepted visitor.
visitor
- a visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |