public class ErrorState extends Object implements ProcessingState
ProcessingState
that always generate an error message.Constructor and Description |
---|
ErrorState()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processToken(ParseToken token)
Process one token.
|
public ErrorState()
This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
public boolean processToken(ParseToken token)
This method always generate an error, as no data is expected in this state.
processToken
in interface ProcessingState
token
- token to processCopyright © 2002-2023 CS GROUP. All rights reserved.