Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pl.matisoft.soy.compile;
 
 import  javax.annotation.Nullable;
 import java.net.URL;
 
Created with IntelliJ IDEA. User: mati Date: 23/06/2013 Time: 12:15 An empty implementation of TofuCompiler, which normally should never be used but it is an implementation of Null Object Pattern, which may prevent an NPE
public class EmptyTofuCompiler implements TofuCompiler {
    @Override
    public SoyTofu compile(final Collection<URLurls) {
        return null;
    }
    @Override
    public Optional<StringcompileToJsSrc(final URL template, @Nullable SoyMsgBundle soyMsgBundle) {
        return Optional.absent();
    }
    @Override
    public Collection<StringcompileToJsSrc(Collection<URLtemplates, @Nullable SoyMsgBundle soyMsgBundle) {
        return Lists.newArrayList();
    }
New to GrepCode? Check out our FAQ X