Tabnine Logo
FieldInstruction.getFieldType
Code IndexAdd Tabnine to your IDE (free)

How to use
getFieldType
method
in
org.apache.bcel.generic.FieldInstruction

Best Java code snippets using org.apache.bcel.generic.FieldInstruction.getFieldType (Showing top 8 results out of 315)

origin: spotbugs/spotbugs

/**
 * Return whether the given FieldInstruction accesses a long or double
 * field.
 *
 * @param fieldIns
 *            the FieldInstruction
 * @param cpg
 *            the ConstantPoolGen for the method
 */
protected static boolean isLongOrDouble(FieldInstruction fieldIns, ConstantPoolGen cpg) {
  Type type = fieldIns.getFieldType(cpg);
  int code = type.getType();
  return code == Const.T_LONG || code == Const.T_DOUBLE;
}
origin: spotbugs/spotbugs

public void modelFieldLoad(FieldInstruction obj) {
  consumeStack(obj);
  Type loadType = obj.getFieldType(cpg);
  XField xfield = Hierarchy.findXField(obj, getCPG());
  if (xfield != null) {
    loadType = getType(xfield);
  }
  pushValue(loadType);
}
origin: org.apache.bcel/bcel

/** @return return type of referenced field
 */
@Override
public Type getType( final ConstantPoolGen cpg ) {
  return getFieldType(cpg);
}
origin: bcel/bcel

/** @return return type of referenced field
 */
public Type getType(ConstantPoolGen cpg) {
 return getFieldType(cpg);
}
origin: com.google.code.findbugs/findbugs

/**
 * Return whether the given FieldInstruction accesses a long or double
 * field.
 *
 * @param fieldIns
 *            the FieldInstruction
 * @param cpg
 *            the ConstantPoolGen for the method
 */
protected static boolean isLongOrDouble(FieldInstruction fieldIns, ConstantPoolGen cpg) {
  Type type = fieldIns.getFieldType(cpg);
  int code = type.getType();
  return code == T_LONG || code == T_DOUBLE;
}
origin: bcel/bcel

public void visitFieldInstruction(FieldInstruction i) {
 short  opcode = i.getOpcode();
 String class_name = i.getClassName(_cp);
 String field_name = i.getFieldName(_cp);
 Type   type       = i.getFieldType(_cp);
 _out.println("il.append(_factory.createFieldAccess(\"" +
    class_name + "\", \"" + field_name + "\", " +
    BCELifier.printType(type) + ", " +
    "Constants." + Constants.OPCODE_NAMES[opcode].toUpperCase() +
    "));");
}
origin: org.apache.bcel/bcel

@Override
public void visitFieldInstruction( final FieldInstruction i ) {
  final short opcode = i.getOpcode();
  final String class_name = i.getClassName(_cp);
  final String field_name = i.getFieldName(_cp);
  final Type type = i.getFieldType(_cp);
  _out.println("il.append(_factory.createFieldAccess(\"" + class_name + "\", \"" + field_name
      + "\", " + BCELifier.printType(type) + ", " + CONSTANT_PREFIX
      + Const.getOpcodeName(opcode).toUpperCase(Locale.ENGLISH) + "));");
}
origin: com.google.code.findbugs/findbugs

public void modelFieldLoad(FieldInstruction obj) {
  consumeStack(obj);
  Type loadType = obj.getFieldType(cpg);
  XField xfield = Hierarchy.findXField(obj, getCPG());
  if (xfield != null) {
    loadType = getType(xfield);
  }
  pushValue(loadType);
}
org.apache.bcel.genericFieldInstructiongetFieldType

Popular methods of FieldInstruction

  • getFieldName
  • getSignature
  • getName
  • getClassName
  • getOpcode
  • getType
  • getReferenceType
  • getIndex
  • getClassType

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
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