protected final class MmuTreeWalkerBase.BufferBuilder
extends java.lang.Object
Buffer
objects. Helps create a Buffer from attributes.Constructor and 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.
|
Modifier and Type | Method and 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) |
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
id
- Buffer identifier.addressArgId
- Address argument identifier.addressArgType
- Address argument type (identifier).parentBufferId
- Identifier of the parent buffer.qualifiers
- List of qualifiers.SemanticException
- if the specified address type is not defined.public void setWays(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
SemanticException
public void setSets(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
SemanticException
public void setEntry(org.antlr.runtime.tree.CommonTree attrId, Type attr) throws SemanticException
SemanticException
public void setIndex(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
SemanticException
public void setMatch(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
SemanticException
public void setGuard(org.antlr.runtime.tree.CommonTree attrId, ru.ispras.fortress.expression.Node attr) throws SemanticException
SemanticException
public void setPolicyId(org.antlr.runtime.tree.CommonTree attrId, org.antlr.runtime.tree.CommonTree attr) throws SemanticException
SemanticException
public Buffer build() throws SemanticException
SemanticException