|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Declarator
cetus.hir.ProcedureDeclarator
public class ProcedureDeclarator
Represents a declarator for a Procedure in a VariableDeclaration.
| Field Summary |
|---|
| Fields inherited from class cetus.hir.Declarator |
|---|
children, leading_specs, object_print_method, parent, trailing_specs |
| Constructor Summary | |
|---|---|
ProcedureDeclarator(IDExpression direct_decl,
java.util.List params)
|
|
ProcedureDeclarator(IDExpression direct_decl,
java.util.List params,
java.util.List trailing_specs)
|
|
ProcedureDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List params)
|
|
ProcedureDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List params,
java.util.List trailing_specs,
ExceptionSpecification espec)
|
|
| 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(ProcedureDeclarator dec,
java.io.OutputStream stream)
Prints a procedure declarator to a stream. |
java.util.List |
getArraySpecifiers()
Returns a List of ArraySpecifier |
IDExpression |
getDirectDeclarator()
|
java.util.List<Declaration> |
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. |
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created objects will use the supplied method. |
java.lang.String |
toString()
|
| Methods inherited from class cetus.hir.Declarator |
|---|
addTrailingSpecifier, defaultPrint, getChildren, getInitializer, getParent, getSpecifiers, print, removeChild, setChild, setInitializer, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcedureDeclarator(IDExpression direct_decl,
java.util.List params)
public ProcedureDeclarator(IDExpression direct_decl,
java.util.List params,
java.util.List trailing_specs)
public ProcedureDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List params)
public ProcedureDeclarator(java.util.List leading_specs,
IDExpression direct_decl,
java.util.List params,
java.util.List trailing_specs,
ExceptionSpecification espec)
| 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(ProcedureDeclarator 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 IDExpression getDirectDeclarator()
public java.util.List<Declaration> 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 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 Declarator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||