Class Value

java.lang.Object
jadex.publishservice.publish.Value

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

    • expression

      protected String expression
      The expression.
    • clazz

      protected Class<?> clazz
      The class.
  • Constructor Details

    • Value

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

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

    • getExpression

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

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

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

      public static Object evaluate(jadex.model.annotation.Value value, String[] imports) throws Exception
      Evaluate a value.
      Throws:
      Exception