Class Value


  • public class Value
    extends java.lang.Object
    Java class representation for the Value annotation as annotations cannot be created at runtime.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<?> clazz
      The class.
      protected java.lang.String expression
      The expression.
    • Constructor Summary

      Constructors 
      Constructor Description
      Value​(java.lang.Class<?> clazz)
      Create a new value.
      Value​(java.lang.String expression)
      Create a new value.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object evaluate​(Value value, java.lang.String[] imports)
      Evaluate a value.
      static java.lang.Object evaluate​(Value value, java.lang.String[] imports)
      Evaluate a value.
      java.lang.Class<?> getClazz()
      Get the clazz.
      java.lang.String getExpression()
      Get the expression.
      • Methods inherited from class java.lang.Object

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

      • expression

        protected java.lang.String expression
        The expression.
      • clazz

        protected java.lang.Class<?> clazz
        The class.
    • Constructor Detail

      • Value

        public Value​(java.lang.String expression)
        Create a new value.
        Parameters:
        expression - The creation expression.
      • Value

        public Value​(java.lang.Class<?> clazz)
        Create a new value.
        Parameters:
        clazz - The clazz.
    • Method Detail

      • getExpression

        public java.lang.String getExpression()
        Get the expression.
        Returns:
        the expression.
      • getClazz

        public java.lang.Class<?> getClazz()
        Get the clazz.
        Returns:
        the clazz.
      • evaluate

        public static java.lang.Object evaluate​(Value value,
                                                java.lang.String[] imports)
                                         throws java.lang.Exception
        Evaluate a value.
        Throws:
        java.lang.Exception
      • evaluate

        public static java.lang.Object evaluate​(Value value,
                                                java.lang.String[] imports)
                                         throws java.lang.Exception
        Evaluate a value.
        Throws:
        java.lang.Exception