|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodDecl
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, exceptions, exceptions, reachable, reachable |
| Methods inherited from interface polyglot.ast.Node |
|---|
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList |
| 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 |
|---|
Flags flags()
flags in interface ProcedureDeclMethodDecl flags(Flags flags)
TypeNode returnType()
MethodDecl returnType(TypeNode returnType)
java.lang.String name()
name in interface ProcedureDeclMethodDecl name(java.lang.String name)
java.util.List formals()
formals in interface ProcedureDeclFormal.MethodDecl formals(java.util.List formals)
formals - A list of Formal.java.util.List throwTypes()
throwTypes in interface ProcedureDeclTypeNode.MethodDecl throwTypes(java.util.List throwTypes)
throwTypes - A list of TypeNode.MethodInstance methodInstance()
MethodDecl methodInstance(MethodInstance mi)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||