public static final class WyilFile.FunctionOrMethod extends WyilFile.FunctionOrMethodOrProperty
| Constructor and Description |
|---|
FunctionOrMethod(WyilFile parent,
Collection<Modifier> modifiers,
String name,
Type.FunctionOrMethod type,
wybs.lang.Attribute... attributes) |
FunctionOrMethod(WyilFile parent,
Collection<Modifier> modifiers,
String name,
Type.FunctionOrMethod type,
Collection<wybs.lang.Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
SyntaxTree.Location<Bytecode.Block> |
getBody()
Get the body of this function or method
|
List<SyntaxTree.Location<Bytecode.Expr>> |
getPostcondition()
Get the list of expressions that make up the postcondition of this
function/method.
|
void |
setBody(SyntaxTree.Location<Bytecode.Block> body) |
getPrecondition, isFunction, isMethod, typegetTree, hasModifier, modifiers, nameattribute, attributes, parentpublic FunctionOrMethod(WyilFile parent, Collection<Modifier> modifiers, String name, Type.FunctionOrMethod type, wybs.lang.Attribute... attributes)
public FunctionOrMethod(WyilFile parent, Collection<Modifier> modifiers, String name, Type.FunctionOrMethod type, Collection<wybs.lang.Attribute> attributes)
public List<SyntaxTree.Location<Bytecode.Expr>> getPostcondition()
public SyntaxTree.Location<Bytecode.Block> getBody()
public void setBody(SyntaxTree.Location<Bytecode.Block> body)
Copyright © 2017. All rights reserved.