Class WebappUberspector.SetAttributeExecutor

  • Enclosing class:
    WebappUberspector

    public class WebappUberspector.SetAttributeExecutor
    extends org.apache.velocity.runtime.parser.node.SetExecutor
    Executor for setAttribute(name,value) method
    • Field Summary

      • Fields inherited from class org.apache.velocity.runtime.parser.node.SetExecutor

        log
    • Constructor Summary

      Constructors 
      Constructor Description
      SetAttributeExecutor​(org.slf4j.Logger log, org.apache.velocity.util.introspection.Introspector introspector, java.lang.Class clazz, java.lang.Object arg, java.lang.String property)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void discover​(java.lang.Class clazz, java.lang.Object arg)  
      java.lang.Object execute​(java.lang.Object o, java.lang.Object value)  
      • Methods inherited from class org.apache.velocity.runtime.parser.node.SetExecutor

        getMethod, isAlive, setMethod
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetAttributeExecutor

        public SetAttributeExecutor​(org.slf4j.Logger log,
                                    org.apache.velocity.util.introspection.Introspector introspector,
                                    java.lang.Class clazz,
                                    java.lang.Object arg,
                                    java.lang.String property)
        Parameters:
        log - logger
        introspector - introspector instance
        clazz - target class
        arg - value to set
        property - property name
    • Method Detail

      • discover

        protected void discover​(java.lang.Class clazz,
                                java.lang.Object arg)
        Parameters:
        clazz - target class
        arg - expected arguments
      • execute

        public java.lang.Object execute​(java.lang.Object o,
                                        java.lang.Object value)
                                 throws java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException
        Specified by:
        execute in class org.apache.velocity.runtime.parser.node.SetExecutor
        Parameters:
        o - target object
        value - value to set
        Throws:
        java.lang.IllegalAccessException - if thrown by underlying code
        java.lang.reflect.InvocationTargetException - if thrown by underlying code
        See Also:
        SetExecutor.execute(java.lang.Object, java.lang.Object)