net.sf.json.DelegatingValueVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-lib Show documentation
Show all versions of json-lib Show documentation
Java library for transforming beans, maps, collections, java
arrays and XML to JSON.
package net.sf.json;
/**
* @author Kohsuke Kawaguchi
*/
public abstract class DelegatingValueVisitor extends ValueVisitor {
protected abstract V accept(Object o);
protected V accept(JSON json) {
return accept((Object)json);
}
public V accept(JSONFunction f) {
return accept((Object)f);
}
public V accept(JSONString s) {
return accept((Object)s);
}
public V accept(Number n) {
return accept((Object)n);
}
public V accept(Boolean b) {
return accept((Object)b);
}
public V accept(JSONObject o) {
return accept((JSON)o);
}
public V accept(JSONArray a) {
return accept((JSON)a);
}
}