public class PushbackString extends AbstractPushbackSequence<Character>
| 构造器和说明 |
|---|
PushbackString(String input) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasNext()
Determine if this sequence has another element.
|
int |
index()
Get the current index of the PushbackString.
|
static boolean |
isHexDigit(Character c)
Returns true if the parameter character is a hexidecimal digit 0 through 9, a
through f, or A through F.
|
static boolean |
isOctalDigit(Character c)
Returns true if the parameter character is an octal digit 0 through 7.
|
void |
mark()
Mark the location of the current index.
|
Character |
next()
Return the next element in the Sequence and increment the current index.
|
Character |
nextHex()
Return the next element in the Sequence in Hex format and increment the
current index.
|
Character |
nextOctal()
Return the next element in the Sequence in Octal format and increment the
current index.
|
Character |
peek()
Return the next element in the Sequence without affecting the current index.
|
boolean |
peek(Character c)
Test to see if the next element in the Sequence matches the supplied 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.
|
pushbackpublic PushbackString(String input)
input - Construct a PushbackString with the specified String.public int index()
AbstractPushbackSequenceindex 在接口中 PushbackSequence<Character>index 在类中 AbstractPushbackSequence<Character>public boolean hasNext()
AbstractPushbackSequencehasNext 在接口中 PushbackSequence<Character>hasNext 在类中 AbstractPushbackSequence<Character>public Character next()
PushbackSequencepublic Character nextHex()
PushbackSequencepublic Character nextOctal()
PushbackSequencepublic static boolean isHexDigit(Character c)
c - public static boolean isOctalDigit(Character c)
c - public Character peek()
PushbackSequencepublic boolean peek(Character c)
PushbackSequencec - The value to match against.public void mark()
public void reset()
public String remainder()
Copyright © 2023. All rights reserved.