Class ELSupport

java.lang.Object
org.glassfish.expressly.lang.ELSupport
Direct Known Subclasses:
SimpleNode

public class ELSupport extends Object
A helper class that implements the Jakarta Expression Specification
Version:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
  • Field Details

    • ZERO

      private static final Long ZERO
  • Constructor Details

    • ELSupport

      public ELSupport()
  • Method Details

    • throwUnhandled

      public static final void throwUnhandled(Object base, Object property) throws jakarta.el.ELException
      Throws:
      jakarta.el.ELException
    • compare

      public static final int compare(Object obj0, Object obj1) throws jakarta.el.ELException
      Parameters:
      obj0 - First object to be compared
      obj1 - Second object to be compared
      Returns:
      The result (an int with values -1, 0, or 1) of the comparison
      Throws:
      jakarta.el.ELException - when something goes wrong
    • equals

      public static final boolean equals(Object obj0, Object obj1) throws jakarta.el.ELException
      Parameters:
      obj0 - Fisrt object to be compared
      obj1 - Second object to be compared
      Returns:
      true if the objects compared equal
      Throws:
      jakarta.el.ELException - when something goes wrong
    • coerceToBoolean

      public static final Boolean coerceToBoolean(Object obj) throws IllegalArgumentException
      Parameters:
      obj - Object to be coerced
      Returns:
      The result of coercion
      Throws:
      IllegalArgumentException
    • coerceToEnum

      public static final Enum coerceToEnum(Object obj, Class type)
    • coerceToArray

      private static Object coerceToArray(jakarta.el.ELContext elContext, Object sourceArray, Class<?> type)
    • coerceToFunctionalInterface

      private static <T> T coerceToFunctionalInterface(jakarta.el.ELContext ctx, jakarta.el.LambdaExpression lambdaExpression, Class<T> type)
    • coerceToCharacter

      public static final Character coerceToCharacter(Object obj) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • coerceToNumber

      public static final Number coerceToNumber(Object obj)
    • coerceToNumber

      protected static final Number coerceToNumber(Number number, Class<?> type) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • coerceToNumber

      public static final Number coerceToNumber(Object obj, Class<?> type) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • coerceToNumber

      protected static final Number coerceToNumber(String val, Class<?> type) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • coerceToString

      public static final String coerceToString(Object obj)
      Parameters:
      obj - Object to be coerced
      Returns:
      The result of coercion
    • checkType

      public static final void checkType(Object obj, Class<?> type) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • coerceToType

      public static final <T> T coerceToType(jakarta.el.ELContext elContext, Object obj, Class<T> type) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • coerceToType

      public static final <T> T coerceToType(jakarta.el.ELContext elContext, Object obj, Class<T> type, boolean isEL22Compatible) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • containsNulls

      public static final boolean containsNulls(Object[] obj)
      Parameters:
      obj - An array of objects
      Returns:
      true if the array contains a null, false otherwise
    • isBigDecimalOp

      public static final boolean isBigDecimalOp(Object obj0, Object obj1)
    • isBigIntegerOp

      public static final boolean isBigIntegerOp(Object obj0, Object obj1)
    • isDoubleOp

      public static final boolean isDoubleOp(Object obj0, Object obj1)
    • isDoubleStringOp

      public static final boolean isDoubleStringOp(Object obj0, Object obj1)
    • isLongOp

      public static final boolean isLongOp(Object obj0, Object obj1)
    • isStringFloat

      public static final boolean isStringFloat(String str)
    • toFloat

      public static final Number toFloat(String value)
    • toNumber

      public static final Number toNumber(String value)
    • isFunctionalInterface

      private static boolean isFunctionalInterface(Class<?> type)
    • isInObject

      private static boolean isInObject(Method method)