Tabnine Logo
Constant.loadInt
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ImageIO (javax.imageio)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTextField (javax.swing)
  • Top Vim plugins
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