Codota Logo
Constant.loadInt
Code IndexAdd Codota to your IDE (free)

How to use
loadInt
method
in
io.airlift.bytecode.instruction.Constant

Best Java code snippets using io.airlift.bytecode.instruction.Constant.loadInt (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: prestodb/presto

block.append(loadInt(((Number) value).intValue()));
origin: io.airlift/bytecode

public BytecodeBlock push(int value)
{
  nodes.add(loadInt(value));
  return this;
}
origin: io.airlift/bytecode

public BytecodeBlock putVariable(Variable variable, int value)
{
  nodes.add(loadInt(value));
  putVariable(variable);
  return this;
}
origin: io.airlift/bytecode

public static BytecodeExpression constantInt(int value)
{
  return new ConstantBytecodeExpression(int.class, loadInt(value));
}
origin: io.airlift/bytecode

public static Constant loadNumber(Number value)
{
  requireNonNull(value, "value is null");
  if (value instanceof Byte) {
    return loadInt((value).intValue());
  }
  if (value instanceof Short) {
    return loadInt((value).intValue());
  }
  if (value instanceof Integer) {
    return loadInt((Integer) value);
  }
  if (value instanceof Long) {
    return loadLong((Long) value);
  }
  if (value instanceof Float) {
    return loadFloat((Float) value);
  }
  if (value instanceof Double) {
    return loadDouble((Double) value);
  }
  throw new IllegalStateException("Unsupported number type " + value.getClass().getSimpleName());
}
origin: io.airlift/bytecode

case 'C':
case 'I':
  nodes.add(loadInt(0));
  break;
case 'F':
origin: prestosql/presto

return block.append(loadInt(((Number) value).intValue()));
origin: io.prestosql/presto-main

return block.append(loadInt(((Number) value).intValue()));
io.airlift.bytecode.instructionConstantloadInt

Popular methods of Constant

  • loadBoolean
  • loadDouble
  • loadFloat
  • loadLong
  • loadString
  • accept
  • getValue
  • loadClass
  • loadNull
  • loadNumber

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JOptionPane (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now