All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.NodeImplPatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.xml.client.Node;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;
import com.googlecode.gwt.test.utils.GwtReflectionUtils;

@PatchClass(target = "com.google.gwt.xml.client.impl.NodeImpl")
class NodeImplPatcher {

    @PatchMethod
    static String toString(Node nodeImpl) {
        JavaScriptObject jso = GwtReflectionUtils.getPrivateFieldValue(nodeImpl, "jsObject");
        return jso.toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy