Class JSONHandler
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.parser.old.JSONHandler
-
- All Implemented Interfaces:
DefaultHandler,FunctorHandlerInterface,LogicBlockHandlerInterface,LogicBlocksHandlerInterface,TopHandlerInterface
public class JSONHandler extends Object implements DefaultHandler
Parses functional notation into a JSON object. THIS IS INCOMPLETE and is mostly just done for a wee bit out of curiosity.Created by Jeff Gaynor
on 7/13/18 at 2:15 PM
-
-
Constructor Summary
Constructors Constructor Description JSONHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendBrace(String name)voidendBracket(String name)voidendParenthesis(String name)voidfoundComma(String name)voidfoundDoubleQuotes(String content)net.sf.json.JSONObjectgetJson()voidreset()Reset the state of this handler to before the first call.voidstartBrace(String name)voidstartBracket(String name)voidstartParenthesis(String name)
-
-
-
Method Detail
-
endBrace
public void endBrace(String name)
- Specified by:
endBracein interfaceLogicBlocksHandlerInterface
-
startBrace
public void startBrace(String name)
- Specified by:
startBracein interfaceLogicBlocksHandlerInterface
-
getJson
public net.sf.json.JSONObject getJson()
-
reset
public void reset()
Description copied from interface:TopHandlerInterfaceReset the state of this handler to before the first call. This allows the handler to be re-used by other components. be sure to get whatever this handler has accumulated before you call this method.- Specified by:
resetin interfaceTopHandlerInterface
-
endBracket
public void endBracket(String name)
- Specified by:
endBracketin interfaceLogicBlockHandlerInterface
-
startBracket
public void startBracket(String name)
- Specified by:
startBracketin interfaceLogicBlockHandlerInterface
-
startParenthesis
public void startParenthesis(String name)
- Specified by:
startParenthesisin interfaceFunctorHandlerInterface
-
endParenthesis
public void endParenthesis(String name)
- Specified by:
endParenthesisin interfaceFunctorHandlerInterface
-
foundComma
public void foundComma(String name)
- Specified by:
foundCommain interfaceTopHandlerInterface
-
foundDoubleQuotes
public void foundDoubleQuotes(String content)
- Specified by:
foundDoubleQuotesin interfaceFunctorHandlerInterface
-
-