public static class WyilFile.FunctionOrMethodOrProperty extends WyilFile.Declaration
| Constructor and Description |
|---|
FunctionOrMethodOrProperty(WyilFile parent,
Collection<Modifier> modifiers,
String name,
Type.FunctionOrMethod type,
wybs.lang.Attribute... attributes) |
FunctionOrMethodOrProperty(WyilFile parent,
Collection<Modifier> modifiers,
String name,
Type.FunctionOrMethod type,
Collection<wybs.lang.Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
List<SyntaxTree.Location<Bytecode.Expr>> |
getPrecondition()
Get the list of expressions that make up the precondition of this
function/method.
|
boolean |
isFunction()
Check whether this represents a function declaration or not.
|
boolean |
isMethod()
Check whether this represents a method declaration or not.
|
Type.FunctionOrMethod |
type() |
getTree, hasModifier, modifiers, nameattribute, attributes, parentpublic FunctionOrMethodOrProperty(WyilFile parent, Collection<Modifier> modifiers, String name, Type.FunctionOrMethod type, wybs.lang.Attribute... attributes)
public FunctionOrMethodOrProperty(WyilFile parent, Collection<Modifier> modifiers, String name, Type.FunctionOrMethod type, Collection<wybs.lang.Attribute> attributes)
public Type.FunctionOrMethod type()
public List<SyntaxTree.Location<Bytecode.Expr>> getPrecondition()
public boolean isFunction()
public boolean isMethod()
Copyright © 2017. All rights reserved.