Tabnine Logo
org.jboss.el.lang
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.el.lang

Best Java code snippets using org.jboss.el.lang (Showing top 20 results out of 315)

origin: com.asual.summer/summer-el

public final static Number divide(final Object obj0, final Object obj1) {
  if (obj0 == null && obj1 == null) {
    return ZERO;
  }
  final ELArithmetic delegate;
  if (BIGDECIMAL.matches(obj0, obj1))
    delegate = BIGDECIMAL;
  else if (BIGINTEGER.matches(obj0, obj1))
    delegate = BIGDECIMAL;
  else
    delegate = DOUBLE;
  Number num0 = delegate.coerce(obj0);
  Number num1 = delegate.coerce(obj1);
  return delegate.divide(num0, num1);
}
origin: org.jboss.el/jboss-el

/**
 * @return
 * @throws ELException
 */
private Node getNode() throws ELException {
  if (this.node == null) {
    this.node = ExpressionBuilder.createNode(this.expr);
  }
  return this.node;
}
origin: com.asual.summer/summer-el

public Object getValue(ELContext context) {
  if (this.expectedType != null) {
    return ELSupport.coerceToType(this.value, this.expectedType);
  }
  return this.value;
}
origin: com.asual.summer/summer-el

public final static boolean isDoubleStringOp(final Object obj0,
    final Object obj1) {
  return (isDoubleOp(obj0, obj1)
      || (obj0 instanceof String && isStringFloat((String) obj0)) || (obj1 instanceof String && isStringFloat((String) obj1)));
}
origin: org.jboss.el/jboss-el

private void prepare(Node node) throws ELException {
  try {
    node.accept(this);
  } catch (Exception e) {
    throw (ELException) e;
  }
  if (this.fnMapper instanceof FunctionMapperFactory) {
    this.fnMapper = ((FunctionMapperFactory) this.fnMapper).create();
  }
  if (this.varMapper instanceof VariableMapperFactory) {
    this.varMapper = ((VariableMapperFactory) this.varMapper).create();
  }
}
origin: com.asual.summer/summer-el

public final static Node createNode(String expr) throws ELException {
  Node n = createNodeInternal(expr);
  return n;
}
origin: org.jboss.el/jboss-el

public final static Number divide(final Object obj0, final Object obj1) {
  if (obj0 == null && obj1 == null) {
    return ZERO;
  }
  final ELArithmetic delegate;
  if (BIGDECIMAL.matches(obj0, obj1))
    delegate = BIGDECIMAL;
  else if (BIGINTEGER.matches(obj0, obj1))
    delegate = BIGDECIMAL;
  else
    delegate = DOUBLE;
  Number num0 = delegate.coerce(obj0);
  Number num1 = delegate.coerce(obj1);
  return delegate.divide(num0, num1);
}
origin: com.asual.summer/summer-el

/**
 * @return
 * @throws ELException
 */
private Node getNode() throws ELException {
  if (this.node == null) {
    this.node = ExpressionBuilder.createNode(this.expr);
  }
  return this.node;
}
origin: org.jboss.el/jboss-el

public final static boolean isDoubleStringOp(final Object obj0,
    final Object obj1) {
  return (isDoubleOp(obj0, obj1)
      || (obj0 instanceof String && isStringFloat((String) obj0)) || (obj1 instanceof String && isStringFloat((String) obj1)));
}
origin: com.asual.summer/summer-el

public Object invoke(ELContext context, Object[] params) throws ELException {
  if (this.expectedType != null) {
    return ELSupport.coerceToType(this.expr, this.expectedType);
  } else {
    return this.expr;
  }
}
origin: asual/summer

public final static Number divide(final Object obj0, final Object obj1) {
  if (obj0 == null && obj1 == null) {
    return ZERO;
  }
  final ELArithmetic delegate;
  if (BIGDECIMAL.matches(obj0, obj1))
    delegate = BIGDECIMAL;
  else if (BIGINTEGER.matches(obj0, obj1))
    delegate = BIGDECIMAL;
  else
    delegate = DOUBLE;
  Number num0 = delegate.coerce(obj0);
  Number num1 = delegate.coerce(obj1);
  return delegate.divide(num0, num1);
}
origin: org.jboss.el/jboss-el

/**
 * @return
 * @throws ELException
 */
private Node getNode() throws ELException {
  if (this.node == null) {
    this.node = ExpressionBuilder.createNode(this.expr);
  }
  return this.node;
}
origin: asual/summer

public final static boolean isDoubleStringOp(final Object obj0,
    final Object obj1) {
  return (isDoubleOp(obj0, obj1)
      || (obj0 instanceof String && isStringFloat((String) obj0)) || (obj1 instanceof String && isStringFloat((String) obj1)));
}
origin: org.jboss.el/jboss-el

public Object invoke(ELContext context, Object[] params) throws ELException {
  if (this.expectedType != null) {
    return ELSupport.coerceToType(this.expr, this.expectedType);
  } else {
    return this.expr;
  }
}
origin: com.asual.summer/summer-el

/**
 * @return
 * @throws ELException
 */
private Node getNode() throws ELException {
  if (this.node == null) {
    this.node = ExpressionBuilder.createNode(this.expr);
  }
  return this.node;
}
origin: org.jboss.el/jboss-el

public Object getValue(ELContext context) {
  if (this.expectedType != null) {
    return ELSupport.coerceToType(this.value, this.expectedType);
  }
  return this.value;
}
origin: asual/summer

/**
 * @return
 * @throws ELException
 */
private Node getNode() throws ELException {
  if (this.node == null) {
    this.node = ExpressionBuilder.createNode(this.expr);
  }
  return this.node;
}
origin: asual/summer

public Object getValue(ELContext context) {
  if (this.expectedType != null) {
    return ELSupport.coerceToType(this.value, this.expectedType);
  }
  return this.value;
}
origin: asual/summer

/**
 * @return
 * @throws ELException
 */
private Node getNode() throws ELException {
  if (this.node == null) {
    this.node = ExpressionBuilder.createNode(this.expr);
  }
  return this.node;
}
origin: asual/summer

public Object invoke(ELContext context, Object[] params) throws ELException {
  if (this.expectedType != null) {
    return ELSupport.coerceToType(this.expr, this.expectedType);
  } else {
    return this.expr;
  }
}
org.jboss.el.lang

Most used classes

  • ExpressionBuilder
  • EvaluationContext
  • FunctionMapperImpl
  • VariableMapperImpl
  • ELArithmetic$BigDecimalDelegate
  • ELArithmetic$DoubleDelegate,
  • ELArithmetic$LongDelegate,
  • ELArithmetic,
  • ELSupport,
  • ExtendedFunctionMapper,
  • FunctionMapperFactory,
  • FunctionMapperImpl$Function,
  • VariableMapperFactory
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now