webit.script.resolvers.impl.ScriptVoidResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webit-script Show documentation
Show all versions of webit-script Show documentation
a template-like script and engine, all writen with Java.
The newest version!
// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script.resolvers.impl;
import webit.script.exceptions.ScriptRuntimeException;
import webit.script.io.Out;
import webit.script.lang.Void;
import webit.script.resolvers.GetResolver;
import webit.script.resolvers.OutResolver;
import webit.script.resolvers.SetResolver;
/**
*
* @author zqq90
*/
public class ScriptVoidResolver implements GetResolver, SetResolver, OutResolver {
public Object get(Object object, Object property) {
throw new ScriptRuntimeException("'Void' type has no property.");
}
public Class getMatchClass() {
return Void.class;
}
public void set(Object object, Object property, Object value) {
throw new ScriptRuntimeException("'Void' type has no property.");
}
public void render(Out out, Object bean) {
//render nothing
}
}