jltools.ast
Interface MethodDecl
- All Superinterfaces:
- ClassMember, java.lang.Cloneable, Copy, Node, ProcedureDecl, java.io.Serializable
- All Known Subinterfaces:
- JifMethodDecl
- All Known Implementing Classes:
- MethodDecl_c
- public interface MethodDecl
- extends ProcedureDecl
A method declaration.
Methods inherited from interface jltools.ast.Node |
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, translate_, typeCheck_, typeCheckOverride_, visit, visitChildren |
flags
public Flags flags()
- Specified by:
flags
in interface ProcedureDecl
flags
public MethodDecl flags(Flags flags)
returnType
public TypeNode returnType()
returnType
public MethodDecl returnType(TypeNode returnType)
name
public java.lang.String name()
- Specified by:
name
in interface ProcedureDecl
name
public MethodDecl name(java.lang.String name)
formals
public java.util.List formals()
- Specified by:
formals
in interface ProcedureDecl
formals
public MethodDecl formals(java.util.List formals)
exceptionTypes
public java.util.List exceptionTypes()
- Specified by:
exceptionTypes
in interface ProcedureDecl
exceptionTypes
public MethodDecl exceptionTypes(java.util.List exceptionTypes)
body
public Block body()
- Specified by:
body
in interface ProcedureDecl
body
public MethodDecl body(Block body)
methodInstance
public MethodInstance methodInstance()
methodInstance
public MethodDecl methodInstance(MethodInstance mi)