org.gridkit.jvmtool.stacktrace.util
Class IndentParser
java.lang.Object
org.gridkit.jvmtool.stacktrace.util.IndentParser
public abstract class IndentParser
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POPUP
public static String POPUP
IndentParser
protected IndentParser()
push
public void push(String line)
throws IndentParser.ParseException
- Throws:
IndentParser.ParseException
finish
public void finish()
throws IndentParser.ParseException
- Throws:
IndentParser.ParseException
indentOf
protected int indentOf(String line)
throws IndentParser.ParseException
- Throws:
IndentParser.ParseException
isEmpty
protected boolean isEmpty(String line)
reset
public void reset()
initialState
protected abstract void initialState()
onToken
protected abstract void onToken(String tokenType,
String token)
throws IndentParser.ParseException
- Throws:
IndentParser.ParseException
onPopup
protected abstract void onPopup()
throws IndentParser.ParseException
- Throws:
IndentParser.ParseException
getLineNumber
public int getLineNumber()
getIndent
public int getIndent()
getExpectedTokens
public Map<String,String> getExpectedTokens()
error
protected void error(String message)
throws IndentParser.ParseException
- Throws:
IndentParser.ParseException
pushParseState
protected void pushParseState()
popParseState
protected void popParseState()
value
protected Object value()
pushValue
protected void pushValue(Object value)
popValue
protected Object popValue()
expectToken
protected void expectToken(String id,
String pattern)
unexpectToken
protected void unexpectToken(String id)
expectPopup
protected void expectPopup()
unexpectPopup
protected void unexpectPopup()
unexpectAll
protected void unexpectAll()
Copyright © 2019. All Rights Reserved.