|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
jay.yydebug.yyAnimPanel
public class yyAnimPanel
animates messages with a graphical interface.
This is not Serializable.
| Nested Class Summary | |
|---|---|
protected static class |
yyAnimPanel.Stack
animates state/value stack. |
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected TextArea |
comments
running explanations. |
protected boolean |
commentsBreak
breakpoints, set in GUI. |
protected yyAnimPanel.Stack |
stack
state/value stack. |
protected boolean |
stackBreak
breakpoints, set in GUI. |
protected TextField |
token
current token and value. |
protected boolean |
tokenBreak
breakpoints, set in GUI. |
protected TextField |
value
current token and value. |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
yyAnimPanel(Font font)
|
|
| Method Summary | |
|---|---|
void |
accept(Object value)
parse is successful. |
void |
discard(int state,
int token,
String name,
Object value)
discarding token during error recovery. |
void |
error(String message)
syntax error. |
protected void |
explain(String what)
post a comment. |
void |
lex(int state,
int token,
String name,
Object value)
just called the scanner. |
void |
pop(int state)
discarding a state during error recovery. |
void |
push(int state,
Object value)
just pushed the state/value stack. |
void |
reduce(int from,
int to,
int rule,
String text,
int len)
rule completed, calling action. |
void |
reject()
error recovery failed, about to throw yyException. |
void |
shift(int from,
int to)
moving to a new state following an action. |
void |
shift(int from,
int to,
int errorFlag)
moving to a new state because of input or error. |
| Methods inherited from class java.awt.Panel |
|---|
addNotify, getAccessibleContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient TextField token
protected transient TextField value
protected transient TextArea comments
protected transient yyAnimPanel.Stack stack
protected transient boolean tokenBreak
protected transient boolean stackBreak
protected transient boolean commentsBreak
| Constructor Detail |
|---|
public yyAnimPanel(Font font)
| Method Detail |
|---|
protected void explain(String what)
public void lex(int state,
int token,
String name,
Object value)
yyDebug
lex in interface yyDebugstate - current state.token - just obtained from scanner.name - of token in grammar.value - will be obtained from scanner.
public void shift(int from,
int to,
int errorFlag)
yyDebug
shift in interface yyDebugfrom - current state.to - next state.errorFlag - value in next state.
public void discard(int state,
int token,
String name,
Object value)
yyDebug
discard in interface yyDebugstate - current state.token - discarded.name - of token in grammar.value - will be obtained from scanner.
public void shift(int from,
int to)
yyDebug
shift in interface yyDebugfrom - current state.to - next state.public void accept(Object value)
yyDebug
accept in interface yyDebugvalue - to be returned by yyparse().public void error(String message)
yyDebug
error in interface yyDebugpublic void reject()
yyDebug
reject in interface yyDebug
public void push(int state,
Object value)
yyDebug
push in interface yyDebugstate - current state.value - current value.public void pop(int state)
yyDebug
pop in interface yyDebugstate - discarded.
public void reduce(int from,
int to,
int rule,
String text,
int len)
yyDebug
reduce in interface yyDebugfrom - current state.to - state to be uncovered.rule - number of completed right-hand side.text - text of rule.len - number of symbols in rule.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||