|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A method declaration.
| Method Summary | |
Flags |
flags()
The method's flags. |
MethodDecl |
flags(Flags flags)
Set the method's flags. |
java.util.List |
formals()
The method's formal parameters. |
MethodDecl |
formals(java.util.List formals)
Set the method's formal parameters. |
MethodInstance |
methodInstance()
The method type object. |
MethodDecl |
methodInstance(MethodInstance mi)
Set the method's type object. |
java.lang.String |
name()
The method's name. |
MethodDecl |
name(java.lang.String name)
Set the method's name. |
TypeNode |
returnType()
The method's return type. |
MethodDecl |
returnType(TypeNode returnType)
Set the method's return type. |
java.util.List |
throwTypes()
The method's exception throw types. |
MethodDecl |
throwTypes(java.util.List throwTypes)
Set the method's exception throw types. |
| Methods inherited from interface polyglot.ast.ProcedureDecl |
procedureInstance |
| Methods inherited from interface polyglot.ast.CodeDecl |
body, body, codeInstance |
| Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
| Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
| Methods inherited from interface polyglot.ast.JL |
init, node |
| Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Method Detail |
public Flags flags()
flags in interface ProcedureDeclpublic MethodDecl flags(Flags flags)
public TypeNode returnType()
public MethodDecl returnType(TypeNode returnType)
public java.lang.String name()
name in interface ProcedureDeclpublic MethodDecl name(java.lang.String name)
public java.util.List formals()
formals in interface ProcedureDeclFormal.public MethodDecl formals(java.util.List formals)
formals - A list of Formal.public java.util.List throwTypes()
throwTypes in interface ProcedureDeclTypeNode.public MethodDecl throwTypes(java.util.List throwTypes)
throwTypes - A list of TypeNode.public MethodInstance methodInstance()
public MethodDecl methodInstance(MethodInstance mi)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||