|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.waxeye.input.InputBuffer
public final class InputBuffer
A class to represent the buffer to hold the input string.
| Field Summary |
|---|
| Fields inherited from interface org.waxeye.input.IParserInput |
|---|
EOF |
| Constructor Summary | |
|---|---|
InputBuffer(char[] input)
Creates a new InputBuffer for the given char[]. |
|
| Method Summary | |
|---|---|
int |
consume()
Gets the next character from the input and moves the position forward 1. |
boolean |
equals(java.lang.Object object)
|
int |
getInputSize()
Returns the inputSize. |
int |
getPosition()
Gets the position marker in the input. |
int |
hashCode()
|
int |
peek()
Gets the next character from the input but maintains the position. |
void |
setPosition(int position)
Sets the position of the input buffer to the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputBuffer(char[] input)
input - The char[] to use for our buffer.| Method Detail |
|---|
public int consume()
consume in interface IParserInputpublic int peek()
peek in interface IParserInputpublic int getPosition()
getPosition in interface IParserInputpublic int getInputSize()
public void setPosition(int position)
setPosition in interface IParserInputposition - The position to set.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||