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 void
endBrace(String name)
void
endBracket(String name)
void
endParenthesis(String name)
void
foundComma(String name)
void
foundDoubleQuotes(String content)
net.sf.json.JSONObject
getJson()
void
reset()
Reset the state of this handler to before the first call.void
startBrace(String name)
void
startBracket(String name)
void
startParenthesis(String name)
-
-
-
Method Detail
-
endBrace
public void endBrace(String name)
- Specified by:
endBrace
in interfaceLogicBlocksHandlerInterface
-
startBrace
public void startBrace(String name)
- Specified by:
startBrace
in interfaceLogicBlocksHandlerInterface
-
getJson
public net.sf.json.JSONObject getJson()
-
reset
public void reset()
Description copied from interface:TopHandlerInterface
Reset 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:
reset
in interfaceTopHandlerInterface
-
endBracket
public void endBracket(String name)
- Specified by:
endBracket
in interfaceLogicBlockHandlerInterface
-
startBracket
public void startBracket(String name)
- Specified by:
startBracket
in interfaceLogicBlockHandlerInterface
-
startParenthesis
public void startParenthesis(String name)
- Specified by:
startParenthesis
in interfaceFunctorHandlerInterface
-
endParenthesis
public void endParenthesis(String name)
- Specified by:
endParenthesis
in interfaceFunctorHandlerInterface
-
foundComma
public void foundComma(String name)
- Specified by:
foundComma
in interfaceTopHandlerInterface
-
foundDoubleQuotes
public void foundDoubleQuotes(String content)
- Specified by:
foundDoubleQuotes
in interfaceFunctorHandlerInterface
-
-