Package org.codehaus.preon.annotation

Examples of org.codehaus.preon.annotation.If


     * org.codehaus.preon.ResolverContext)
     */

    public Binding create(AnnotatedElement metadata, Field field, Codec<?> codec,
                          ResolverContext context, Documenter<ParaContents<?>> containerReference) {
        If condition = metadata.getAnnotation(If.class);
        if (condition != null) {
            Expression<Boolean, Resolver> expr = null;
            String value = condition.value();
            try {
                expr = Expressions.createBoolean(context, value);
                return new ConditionalBinding(expr, decorated.create(metadata, field, codec, context, containerReference));
            } catch (InvalidExpressionException e) {
                System.err.println("All wrong");
View Full Code Here

TOP

Related Classes of org.codehaus.preon.annotation.If

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.