com.alibaba.dubbo.common.json
Interface JSONVisitor


public interface JSONVisitor

JSONVisitor.

Author:
qian.lei

Field Summary
static String CLASS_PROPERTY
           
 
Method Summary
 void arrayBegin()
          array begin.
 Object arrayEnd(int count)
          array end, return array value.
 void arrayItem(int index)
          array item.
 void arrayItemValue(int index, Object obj, boolean isValue)
          array item.
 void begin()
          parse begin .
 Object end(Object obj, boolean isValue)
          parse end.
 void objectBegin()
          object begin.
 Object objectEnd(int count)
          object end, return object value.
 void objectItem(String name)
          object property name.
 void objectItemValue(Object obj, boolean isValue)
          object property value.
 

Field Detail

CLASS_PROPERTY

static final String CLASS_PROPERTY
See Also:
Constant Field Values
Method Detail

begin

void begin()
parse begin .


end

Object end(Object obj,
           boolean isValue)
           throws ParseException
parse end.

Parameters:
obj - root obj.
isValue - is json value.
Returns:
parse result.
Throws:
ParseException

objectBegin

void objectBegin()
                 throws ParseException
object begin.

Throws:
ParseException

objectEnd

Object objectEnd(int count)
                 throws ParseException
object end, return object value.

Parameters:
count - property count.
Returns:
object value.
Throws:
ParseException

objectItem

void objectItem(String name)
                throws ParseException
object property name.

Parameters:
name - name.
Throws:
ParseException

objectItemValue

void objectItemValue(Object obj,
                     boolean isValue)
                     throws ParseException
object property value.

Parameters:
obj - obj.
isValue - is json value.
Throws:
ParseException

arrayBegin

void arrayBegin()
                throws ParseException
array begin.

Throws:
ParseException

arrayEnd

Object arrayEnd(int count)
                throws ParseException
array end, return array value.

Parameters:
count - count.
Returns:
array value.
Throws:
ParseException

arrayItem

void arrayItem(int index)
               throws ParseException
array item.

Parameters:
index - index.
Throws:
ParseException

arrayItemValue

void arrayItemValue(int index,
                    Object obj,
                    boolean isValue)
                    throws ParseException
array item.

Parameters:
index - index.
obj - item.
isValue - is json value.
Throws:
ParseException


Copyright © 2012–2017 Alibaba. All rights reserved.