|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodDecl
A method declaration.
| Field Summary |
|---|
| Fields inherited from interface polyglot.ast.Term |
|---|
ENTRY, EXIT |
| 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. |
Id |
id()
The method's name. |
MethodDecl |
id(Id name)
Set the method's name. |
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.CodeBlock |
|---|
body, body |
| Methods inherited from interface polyglot.ast.CodeNode |
|---|
codeBody, codeInstance |
| Methods inherited from interface polyglot.ast.Term |
|---|
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable |
| Methods inherited from interface polyglot.ast.Node |
|---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
| Methods inherited from interface polyglot.ast.JL |
|---|
init, node |
| Methods inherited from interface polyglot.ast.NodeOps |
|---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Methods inherited from interface polyglot.ast.ClassMember |
|---|
memberInstance |
| Method Detail |
|---|
Flags flags()
flags in interface ProcedureDeclMethodDecl flags(Flags flags)
TypeNode returnType()
MethodDecl returnType(TypeNode returnType)
Id id()
MethodDecl id(Id name)
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 | ||||||||