public class PushBackSequenceImpl extends AbstractPushbackSequence<Integer>
| 构造器和说明 |
|---|
PushBackSequenceImpl(String input) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isHexDigit(Integer c)
Returns true if the parameter character is a hexidecimal digit 0 through 9, a
through f, or A through F.
|
static boolean |
isOctalDigit(Integer c)
Returns true if the parameter character is an octal digit 0 through 7.
|
void |
mark()
Mark the location of the current index.
|
Integer |
next()
Return the next element in the Sequence and increment the current index.
|
Integer |
nextHex()
Return the next element in the Sequence in Hex format and increment the
current index.
|
Integer |
nextOctal()
Return the next element in the Sequence in Octal format and increment the
current index.
|
Integer |
peek()
Return the next codePoint without affecting the current index.
|
boolean |
peek(Integer c)
Test to see if the next codePoint is a particular value without affecting the
current index.
|
String |
remainder()
Not at all sure what this method is intended to do.
|
void |
reset()
Set the index back to the last marked location.
|
hasNext, index, pushbackpublic PushBackSequenceImpl(String input)
input - public Integer next()
PushbackSequencepublic Integer nextHex()
PushbackSequencepublic Integer nextOctal()
PushbackSequencepublic static boolean isHexDigit(Integer c)
c - public static boolean isOctalDigit(Integer c)
c - public Integer peek()
public boolean peek(Integer c)
c - public void mark()
public void reset()
public String remainder()
Copyright © 2024. All rights reserved.