org.fusesource.restygwt.rebind
Class JsonEncoderDecoderInstanceLocator

java.lang.Object
  extended by org.fusesource.restygwt.rebind.JsonEncoderDecoderInstanceLocator

public class JsonEncoderDecoderInstanceLocator
extends Object

Author:
Hiram Chirino

Field Summary
 HashMap<JType,String> builtInEncoderDecoders
           
 GeneratorContext context
           
 JClassType DOCUMENT_TYPE
           
static String JSON_CLASS
           
static String JSON_ENCODER_DECODER_CLASS
           
 JClassType JSON_VALUE_TYPE
           
 JClassType LIST_TYPE
           
 TreeLogger logger
           
 JClassType MAP_TYPE
           
 JClassType SET_TYPE
           
 JClassType STRING_TYPE
           
 
Constructor Summary
JsonEncoderDecoderInstanceLocator(GeneratorContext context, TreeLogger logger)
           
 
Method Summary
protected  void debug(String msg)
           
 String decodeExpression(JType type, String expression, Json.Style style)
           
 String encodeExpression(JType type, String expression, Json.Style style)
           
protected  void error(String msg)
           
protected  void info(String msg)
           
protected  void trace(String msg)
           
protected  void warn(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSON_ENCODER_DECODER_CLASS

public static final String JSON_ENCODER_DECODER_CLASS

JSON_CLASS

public static final String JSON_CLASS

STRING_TYPE

public final JClassType STRING_TYPE

JSON_VALUE_TYPE

public final JClassType JSON_VALUE_TYPE

DOCUMENT_TYPE

public final JClassType DOCUMENT_TYPE

MAP_TYPE

public final JClassType MAP_TYPE

SET_TYPE

public final JClassType SET_TYPE

LIST_TYPE

public final JClassType LIST_TYPE

builtInEncoderDecoders

public final HashMap<JType,String> builtInEncoderDecoders

context

public final GeneratorContext context

logger

public final TreeLogger logger
Constructor Detail

JsonEncoderDecoderInstanceLocator

public JsonEncoderDecoderInstanceLocator(GeneratorContext context,
                                         TreeLogger logger)
                                  throws UnableToCompleteException
Throws:
UnableToCompleteException
Method Detail

encodeExpression

public String encodeExpression(JType type,
                               String expression,
                               Json.Style style)
                        throws UnableToCompleteException
Throws:
UnableToCompleteException

decodeExpression

public String decodeExpression(JType type,
                               String expression,
                               Json.Style style)
                        throws UnableToCompleteException
Throws:
UnableToCompleteException

error

protected void error(String msg)
              throws UnableToCompleteException
Throws:
UnableToCompleteException

warn

protected void warn(String msg)
             throws UnableToCompleteException
Throws:
UnableToCompleteException

info

protected void info(String msg)
             throws UnableToCompleteException
Throws:
UnableToCompleteException

debug

protected void debug(String msg)
              throws UnableToCompleteException
Throws:
UnableToCompleteException

trace

protected void trace(String msg)
              throws UnableToCompleteException
Throws:
UnableToCompleteException


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.