org.richfaces.cdk.templatecompiler.statements.TemplateStatement Maven / Gradle / Ivy
The newest version!
/**
*
*/
package org.richfaces.cdk.templatecompiler.statements;
import java.util.Collections;
import org.richfaces.cdk.templatecompiler.builder.model.JavaField;
import org.richfaces.cdk.templatecompiler.builder.model.JavaStatement;
import org.richfaces.cdk.templatecompiler.builder.model.RequireImports;
import com.google.common.base.Function;
/**
* @author asmirnov
*
*/
public interface TemplateStatement extends JavaStatement, RequireImports {
Function> FIELDS_TRANSFORM = new Function>() {
public Iterable apply(TemplateStatement from) {
if (from == null) {
return Collections.emptyList();
}
return from.getRequiredFields();
}
;
};
Function> METHODS_TRANSFORM = new Function>() {
public Iterable apply(TemplateStatement from) {
if (from == null) {
return Collections.emptyList();
}
return from.getRequiredMethods();
}
;
};
Iterable getRequiredFields();
Iterable getRequiredMethods();
void setParent(StatementsContainer parent);
}