org.gridkit.jvmtool.stacktrace.util
Class IndentParser

java.lang.Object
  extended by org.gridkit.jvmtool.stacktrace.util.IndentParser

public abstract class IndentParser
extends Object


Nested Class Summary
static class IndentParser.ParseException
           
protected static class IndentParser.ParseState
           
 
Field Summary
static String POPUP
           
 
Constructor Summary
protected IndentParser()
           
 
Method Summary
protected  void error(String message)
           
protected  void expectPopup()
           
protected  void expectToken(String id, String pattern)
           
 void finish()
           
 Map<String,String> getExpectedTokens()
           
 int getIndent()
           
 int getLineNumber()
           
protected  int indentOf(String line)
           
protected abstract  void initialState()
           
protected  boolean isEmpty(String line)
           
protected abstract  void onPopup()
           
protected abstract  void onToken(String tokenType, String token)
           
protected  void popParseState()
           
protected  Object popValue()
           
 void push(String line)
           
protected  void pushParseState()
           
protected  void pushValue(Object value)
           
 void reset()
           
protected  void unexpectAll()
           
protected  void unexpectPopup()
           
protected  void unexpectToken(String id)
           
protected  Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POPUP

public static String POPUP
Constructor Detail

IndentParser

protected IndentParser()
Method Detail

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.