ConstantExpression.<init>
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.activemq.artemis.selector.filter.ConstantExpression.<init> (Showing top 20 results out of 315)

  • Common ways to obtain ConstantExpression
private void myMethod () {
ConstantExpression c =
  • String text;ConstantExpression.createFloat(text)
  • String text;ConstantExpression.createFromHex(text)
  • String text;ConstantExpression.createFromOctal(text)
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

public static ConstantExpression createFloat(String text) {
 Number value = new Double(text);
 return new ConstantExpression(value);
}
origin: wildfly/wildfly

public static ConstantExpression createFromOctal(String text) {
 Number value = Long.valueOf(Long.parseLong(text, 8));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: wildfly/wildfly

public static ConstantExpression createFromHex(String text) {
 Number value = Long.valueOf(Long.parseLong(text.substring(2), 16));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: wildfly/wildfly

public static ConstantExpression createFromDecimal(String text) {
 // Strip off the 'l' or 'L' if needed.
 if (text.endsWith("l") || text.endsWith("L")) {
   text = text.substring(0, text.length() - 1);
 }
 Number value;
 try {
   value = new Long(text);
 } catch (NumberFormatException e) {
   // The number may be too big to fit in a long.
   value = new BigDecimal(text);
 }
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: wildfly/wildfly

case STRING_LITERAL:
 s = stringLitteral();
      left = new ConstantExpression(s);
 break;
case DECIMAL_LITERAL:
origin: wildfly/wildfly

case STRING_LITERAL:
 s = stringLitteral();
      left = new ConstantExpression(s);
 break;
case DECIMAL_LITERAL:
origin: apache/activemq-artemis

public static ConstantExpression createFloat(String text) {
 Number value = new Double(text);
 return new ConstantExpression(value);
}
origin: org.apache.activemq/artemis-selector

public static ConstantExpression createFloat(String text) {
 Number value = new Double(text);
 return new ConstantExpression(value);
}
origin: apache/activemq-artemis

public static ConstantExpression createFloat(String text) {
 Number value = new Double(text);
 return new ConstantExpression(value);
}
origin: org.jboss.eap/wildfly-client-all

public static ConstantExpression createFloat(String text) {
 Number value = new Double(text);
 return new ConstantExpression(value);
}
origin: apache/activemq-artemis

public static ConstantExpression createFromOctal(String text) {
 Number value = Long.valueOf(Long.parseLong(text, 8));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: apache/activemq-artemis

public static ConstantExpression createFromOctal(String text) {
 Number value = Long.valueOf(Long.parseLong(text, 8));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: org.jboss.eap/wildfly-client-all

public static ConstantExpression createFromOctal(String text) {
 Number value = Long.valueOf(Long.parseLong(text, 8));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: apache/activemq-artemis

public static ConstantExpression createFromHex(String text) {
 Number value = Long.valueOf(Long.parseLong(text.substring(2), 16));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: org.apache.activemq/artemis-jms-client-all

public static ConstantExpression createFromOctal(String text) {
 Number value = Long.valueOf(Long.parseLong(text, 8));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: org.apache.activemq/artemis-jms-client-all

public static ConstantExpression createFromHex(String text) {
 Number value = Long.valueOf(Long.parseLong(text.substring(2), 16));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: apache/activemq-artemis

public static ConstantExpression createFromHex(String text) {
 Number value = Long.valueOf(Long.parseLong(text.substring(2), 16));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: org.apache.activemq/artemis-selector

public static ConstantExpression createFromOctal(String text) {
 Number value = Long.valueOf(Long.parseLong(text, 8));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: org.apache.activemq/artemis-selector

public static ConstantExpression createFromHex(String text) {
 Number value = Long.valueOf(Long.parseLong(text.substring(2), 16));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
origin: org.jboss.eap/wildfly-client-all

public static ConstantExpression createFromHex(String text) {
 Number value = Long.valueOf(Long.parseLong(text.substring(2), 16));
 long l = value.longValue();
 if (Integer.MIN_VALUE <= l && l <= Integer.MAX_VALUE) {
   value = Integer.valueOf(value.intValue());
 }
 return new ConstantExpression(value);
}
org.apache.activemq.artemis.selector.filterConstantExpression<init>

Popular methods of ConstantExpression

  • createFloat
  • createFromDecimal
  • createFromHex
  • createFromOctal
  • encodeString
    Encodes the value of string so that it looks like it would look like when it was provided in a selec
  • getValue

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JList (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)