bboss.org.apache.velocity.runtime.parser.node.AbstractExecutor

Here are the examples of the java api class bboss.org.apache.velocity.runtime.parser.node.AbstractExecutor taken from open source projects.

1. UberspectImpl#getPropertyGet()

Project: bboss
File: UberspectImpl.java
/**
     * Property  getter
     * @param obj
     * @param identifier
     * @param i
     * @return A Velocity Getter Method.
     * @throws Exception
     */
public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i) throws Exception {
    if (obj == null) {
        return null;
    }
    Class claz = obj.getClass();
    /*
         *  first try for a getFoo() type of property
         *  (also getfoo() )
         */
    AbstractExecutor executor = new PropertyExecutor(log, introspector, claz, identifier);
    /*
         * Let's see if we are a map...
         */
    if (!executor.isAlive()) {
        executor = new MapGetExecutor(log, claz, identifier);
    }
    if (!executor.isAlive()) {
        executor = new GetExecutor(log, introspector, claz, identifier);
    }
    if (!executor.isAlive()) {
        executor = new BooleanPropertyExecutor(log, introspector, claz, identifier);
    }
    return (executor.isAlive()) ? new VelGetterImpl(executor) : null;
}