java.lang.Object
bossa.syntax.Node
bossa.syntax.Definition
bossa.syntax.MethodDeclaration
bossa.syntax.UserOperator
- All Implemented Interfaces:
- bossa.util.Located
- Direct Known Subclasses:
- NiceMethod
- abstract class UserOperator
- extends MethodDeclaration
An operator whose semantics is defined by the user (i.e. not built-in).
A contract can be attached to a user operator.
- Version:
- $Date: 2003/11/28 13:52:08 $
| Methods inherited from class bossa.syntax.MethodDeclaration |
checkSpecialRequirements, compile, computeCode, explainWhyMatchFails, formalParameters, getArgTypes, getArity, getCode, getCodeInCallPosition, getFullName, getReturnType, getSymbol, getType, isFieldAccess, isIgnored, javaArgTypes, javaReturnType, printInterface, typecheck, typedResolve |
| Methods inherited from class bossa.syntax.Node |
addChild, addChildren, addFirstChild, addSymbol, addTypeMap, addTypeSymbol, addTypeSymbols, buildScope, buildScope, child, doTypecheck, getCurrentFunction, getGlobalScope, getGlobalTypeScope, getScope, getTypeScope, removeChild, resolve, setCurrentFunction, setModule |
contract
private Contract contract
symbols
private MonoSymbol[] symbols
UserOperator
UserOperator(LocatedString name,
Constraint constraint,
Monotype returnType,
FormalParameters parameters,
Contract contract)
getContract
public Contract getContract()
doResolve
void doResolve()
- Resolution
- Overrides:
doResolve in class Node
toString
public java.lang.String toString()
- Description copied from class:
MethodDeclaration
- Printing
- Overrides:
toString in class MethodDeclaration
getSymbols
public MonoSymbol[] getSymbols()
innerTypecheck
void innerTypecheck()
throws mlsub.typing.TypingEx
- Typechecking
- Overrides:
innerTypecheck in class MethodDeclaration
typecheckCompiled
void typecheckCompiled()
- Description copied from class:
MethodDeclaration
- Typechecking when the package has already been compiled.
- Overrides:
typecheckCompiled in class MethodDeclaration