Package org.gwtnode.dev.debug.message

Examples of org.gwtnode.dev.debug.message.ValueType


            objectCache.freeJavaScriptObject(id);
        }
    }
   
    Value<?> getValueFromJavaScriptObject(Object jsObject) {
        ValueType type = ValueType.values()[getValueTypeOrdinalFromJavaScriptObject(jsObject)];
        if (type == ValueType.JAVA_OBJECT) {
            Integer val = objectCache.getJavaObjectId((JavaScriptObject) jsObject);
            if (val != null) {
                return type.createValueFromObject(val);
            } else {
                return ValueType.JAVA_SCRIPT_OBJECT.createValueFromObject(
                        objectCache.getJavaScriptObjectId((JavaScriptObject) jsObject, true));
            }
        } else {
            return type.createValueFromObject(jsObject);
        }
    }
View Full Code Here


        offset += length;
        return ret;
    }
   
    public <T> Value<T> readValue() {
        ValueType type = ValueType.getValueType(this);
        return type.createValue(this);
    }
View Full Code Here

TOP

Related Classes of org.gwtnode.dev.debug.message.ValueType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.