Tabnine Logo
MULTIANEWARRAY.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.bcel.generic.MULTIANEWARRAY
constructor

Best Java code snippets using org.apache.bcel.generic.MULTIANEWARRAY.<init> (Showing top 4 results out of 315)

origin: bcel/bcel

/** Create new array of given size and type.
 * @return an instruction that creates the corresponding array at runtime, i.e. is an AllocationInstruction
 */
public Instruction createNewArray(Type t, short dim) {
 if(dim == 1) {
  if(t instanceof ObjectType)
 return new ANEWARRAY(cp.addClass((ObjectType)t));
  else if(t instanceof ArrayType)
 return new ANEWARRAY(cp.addArrayClass((ArrayType)t));
  else
 return new NEWARRAY(((BasicType)t).getType());
 } else {
  ArrayType at;
  if(t instanceof ArrayType)
 at = (ArrayType)t;
  else
 at = new ArrayType(t, dim);
  return new MULTIANEWARRAY(cp.addArrayClass(at), dim);
 }
}
origin: org.apache.bcel/bcel

/** Create new array of given size and type.
 * @return an instruction that creates the corresponding array at runtime, i.e. is an AllocationInstruction
 */
public Instruction createNewArray( final Type t, final short dim ) {
  if (dim == 1) {
    if (t instanceof ObjectType) {
      return new ANEWARRAY(cp.addClass((ObjectType) t));
    } else if (t instanceof ArrayType) {
      return new ANEWARRAY(cp.addArrayClass((ArrayType) t));
    } else {
      return new NEWARRAY(t.getType());
    }
  }
  ArrayType at;
  if (t instanceof ArrayType) {
    at = (ArrayType) t;
  } else {
    at = new ArrayType(t, dim);
  }
  return new MULTIANEWARRAY(cp.addArrayClass(at), dim);
}
origin: org.apache.bcel/bcel

  break;
case Const.MULTIANEWARRAY:
  obj = new MULTIANEWARRAY();
  break;
case Const.IFNULL:
origin: rohanpadhye/jqf

  break;
case Const.MULTIANEWARRAY:
  ins = new MULTIANEWARRAY(generateClassRef(r), r.nextShort((short) 1 , Short.MAX_VALUE));
  break;
case Const.IFNULL:
org.apache.bcel.genericMULTIANEWARRAY<init>

Javadoc

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

Popular methods of MULTIANEWARRAY

  • getType
  • getDimensions
  • getIndex

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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