public class AgBuffer extends Object implements Compare
| Constructor and Description |
|---|
AgBuffer(Attribute start) |
AgBuffer(List<State> states) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(State right) |
void |
append(AgBuffer right) |
int |
calcCard(Attribute root) |
Occurrence |
calcOccurrence(Attribute start) |
Occurrence |
calcOccurrence(List<Attribute> stack,
Attribute start) |
void |
calcOccurrences() |
Attribute |
cloneAttributes(AgBuffer orig,
Type type,
Attribute seed)
Clones this buffer but replaces all transport attributes with new attributes
of the specified type.
|
int |
compare(AgBuffer rightSemantics) |
AgBuffer |
createReduced(Attribute start)
Can be used for both down and up transport.
|
void |
createSemanticsBuffer(Ag sems,
Transport transport) |
Attribute |
createSequence(Attribute start,
int seq,
AgBuffer result) |
Attribute |
getStart() |
List<Attribute> |
getTransportAttributes()
TODO: get rid of this method ...
|
int |
getWidth(Attribute attr) |
boolean |
isDownOptional()
Is down Optional.
|
State |
lookup(Attribute attr) |
Attribute |
merge(List<AgBuffer> copyBuffers,
int symbol,
Type mergedType)
Merge all attributes with >0 attributions buffers.
|
void |
setStart(Attribute start) |
String |
toRawString() |
String |
toString() |
String |
toString(boolean raw) |
public AgBuffer(Attribute start)
public Attribute getStart()
public void setStart(Attribute start)
public void append(AgBuffer right)
public void add(State right)
public AgBuffer createReduced(Attribute start)
public boolean isDownOptional()
public List<Attribute> getTransportAttributes()
public Attribute merge(List<AgBuffer> copyBuffers, int symbol, Type mergedType)
public int compare(AgBuffer rightSemantics)
public String toRawString()
public String toString(boolean raw)
public Attribute cloneAttributes(AgBuffer orig, Type type, Attribute seed)
type - for new attributespublic int calcCard(Attribute root)
public Occurrence calcOccurrence(Attribute start)
public Occurrence calcOccurrence(List<Attribute> stack, Attribute start)
public int getWidth(Attribute attr)
public void calcOccurrences()
Copyright © 1998–2017 1&1. All rights reserved.