|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Declarator
cetus.hir.NestedDeclarator
public class NestedDeclarator
Represents a nested declarator that may appear as part of another declarator.
| Field Summary |
|---|
| Fields inherited from class cetus.hir.Declarator |
|---|
children, leading_specs, object_print_method, parent, trailing_specs |
| Constructor Summary | |
|---|---|
NestedDeclarator(Declarator nested_decl)
|
|
NestedDeclarator(Declarator nested_decl,
java.util.List params)
|
|
NestedDeclarator(java.util.List leading_specs,
Declarator nested_decl,
java.util.List params)
|
|
NestedDeclarator(java.util.List leading_specs,
Declarator nested_decl,
java.util.List params,
java.util.List trailing_specs)
|
|
NestedDeclarator(Specifier spec,
Declarator nested_decl,
java.util.List params)
|
|
| Method Summary | |
|---|---|
void |
addParameter(Declaration decl)
|
void |
addParameterAfter(Declaration ref,
Declaration decl)
|
void |
addParameterBefore(Declaration ref,
Declaration decl)
|
java.lang.Object |
clone()
|
static void |
defaultPrint(NestedDeclarator dec,
java.io.OutputStream stream)
Prints a nested declarator to a stream. |
java.util.List |
getArraySpecifiers()
Returns a List of ArraySpecifier |
Declarator |
getDeclarator()
|
Initializer |
getInitializer()
|
java.util.List |
getParameters()
Returns a List of Function Parameter |
IDExpression |
getSymbol()
Returns the symbol declared by this declarator. |
java.lang.String |
getSymbolName()
Returns the name of the symbol. |
java.util.List |
getTypeSpecifiers()
Returns a list of type specifiers. |
boolean |
isProcedure()
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created objects will use the supplied method. |
void |
setInitializer(Initializer init)
Sets the initial value of the variable. |
java.lang.String |
toString()
|
| Methods inherited from class cetus.hir.Declarator |
|---|
addTrailingSpecifier, defaultPrint, getChildren, getParent, getSpecifiers, print, removeChild, setChild, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NestedDeclarator(Declarator nested_decl)
public NestedDeclarator(Declarator nested_decl,
java.util.List params)
public NestedDeclarator(java.util.List leading_specs,
Declarator nested_decl,
java.util.List params)
public NestedDeclarator(Specifier spec,
Declarator nested_decl,
java.util.List params)
public NestedDeclarator(java.util.List leading_specs,
Declarator nested_decl,
java.util.List params,
java.util.List trailing_specs)
| Method Detail |
|---|
public void addParameter(Declaration decl)
addParameter in class Declarator
public void addParameterBefore(Declaration ref,
Declaration decl)
addParameterBefore in class Declarator
public void addParameterAfter(Declaration ref,
Declaration decl)
addParameterAfter in class Declaratorpublic java.lang.Object clone()
clone in class Declarator
public static void defaultPrint(NestedDeclarator dec,
java.io.OutputStream stream)
dec - The declarator to print.stream - The stream on which to print the declarator.public java.lang.String toString()
toString in class Declaratorpublic Declarator getDeclarator()
public java.util.List getParameters()
Declarator
getParameters in class Declaratorpublic IDExpression getSymbol()
getSymbol in class Declaratorpublic static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public Initializer getInitializer()
getInitializer in class Declaratorpublic void setInitializer(Initializer init)
Declarator
setInitializer in class Declaratorinit - An initial value for the variable.public java.lang.String getSymbolName()
Symbol
getSymbolName in interface Symbolpublic java.util.List getTypeSpecifiers()
Symbol
getTypeSpecifiers in interface Symbolpublic java.util.List getArraySpecifiers()
Declarator
getArraySpecifiers in interface SymbolgetArraySpecifiers in class Declaratorpublic boolean isProcedure()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||