Class MmuTreeWalkerBase.BufferBuilder
- java.lang.Object
-
- ru.ispras.microtesk.mmu.translator.MmuTreeWalkerBase.BufferBuilder
-
- Enclosing class:
- MmuTreeWalkerBase
protected final class MmuTreeWalkerBase.BufferBuilder extends java.lang.Object
Builder forBuffer
objects. Helps create a Buffer from attributes.
-
-
Constructor Summary
Constructors Constructor Description BufferBuilder(org.antlr.runtime.tree.CommonTree id, org.antlr.runtime.tree.CommonTree addressArgId, org.antlr.runtime.tree.CommonTree addressArgType, org.antlr.runtime.tree.CommonTree parentBufferId, java.util.List<java.lang.String> qualifiers)
Constructs a builder for a Buffer object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffer
build()
void
setEntry(org.antlr.runtime.tree.CommonTree attrId, Type attr)
void
setGuard(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr)
void
setIndex(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr)
void
setMatch(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr)
void
setPolicyId(org.antlr.runtime.tree.CommonTree attrId, org.antlr.runtime.tree.CommonTree attr)
void
setSets(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr)
void
setWays(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr)
-
-
-
Constructor Detail
-
BufferBuilder
public BufferBuilder(org.antlr.runtime.tree.CommonTree id, org.antlr.runtime.tree.CommonTree addressArgId, org.antlr.runtime.tree.CommonTree addressArgType, org.antlr.runtime.tree.CommonTree parentBufferId, java.util.List<java.lang.String> qualifiers) throws SemanticException
Constructs a builder for a Buffer object.- Parameters:
id
- Buffer identifier.addressArgId
- Address argument identifier.addressArgType
- Address argument type (identifier).parentBufferId
- Identifier of the parent buffer.qualifiers
- List of qualifiers.- Throws:
SemanticException
- if the specified address type is not defined.
-
-
Method Detail
-
setWays
public void setWays(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
- Throws:
SemanticException
-
setSets
public void setSets(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
- Throws:
SemanticException
-
setEntry
public void setEntry(org.antlr.runtime.tree.CommonTree attrId, Type attr) throws SemanticException
- Throws:
SemanticException
-
setIndex
public void setIndex(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
- Throws:
SemanticException
-
setMatch
public void setMatch(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
- Throws:
SemanticException
-
setGuard
public void setGuard(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
- Throws:
SemanticException
-
setPolicyId
public void setPolicyId(org.antlr.runtime.tree.CommonTree attrId, org.antlr.runtime.tree.CommonTree attr) throws SemanticException
- Throws:
SemanticException
-
build
public Buffer build() throws SemanticException
- Throws:
SemanticException
-
-