Class MmuTreeWalkerBase.CallableBuilder
- java.lang.Object
-
- ru.ispras.microtesk.mmu.translator.MmuTreeWalkerBase.CallableBuilder
-
- Enclosing class:
- MmuTreeWalkerBase
protected final class MmuTreeWalkerBase.CallableBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CallableBuilder(org.antlr.runtime.tree.CommonTree node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,Var>
addLocalVariables(java.util.Collection<org.antlr.runtime.tree.CommonTree> nodes, java.util.Collection<Type> types)
java.util.Map<java.lang.String,Var>
addParameters(java.util.Collection<org.antlr.runtime.tree.CommonTree> nodes, java.util.Collection<Type> types)
Callable
build()
void
setBody(java.util.List<Stmt> body)
void
setOutput(Var var)
void
setRetType(Type retType)
-
-
-
Method Detail
-
setRetType
public void setRetType(Type retType)
-
setOutput
public void setOutput(Var var)
-
setBody
public void setBody(java.util.List<Stmt> body)
-
addParameters
public java.util.Map<java.lang.String,Var> addParameters(java.util.Collection<org.antlr.runtime.tree.CommonTree> nodes, java.util.Collection<Type> types) throws SemanticException
- Throws:
SemanticException
-
addLocalVariables
public java.util.Map<java.lang.String,Var> addLocalVariables(java.util.Collection<org.antlr.runtime.tree.CommonTree> nodes, java.util.Collection<Type> types) throws SemanticException
- Throws:
SemanticException
-
build
public Callable build() throws SemanticException
- Throws:
SemanticException
-
-