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

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

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

origin: xalan/xalan

  public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();

    _right.translate(classGen, methodGen);
    il.append(new CHECKCAST(cpg.addClass(_className)));
  }
}
origin: xalan/xalan

/**
 * Translates an object of this type to its unboxed representation.
 */ 
public void translateUnBox(ClassGenerator classGen,
        MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
il.append(new CHECKCAST(cpg.addClass(DOUBLE_CLASS)));
il.append(new INVOKEVIRTUAL(cpg.addMethodref(DOUBLE_CLASS,
             DOUBLE_VALUE, 
             DOUBLE_VALUE_SIG)));
}
origin: xalan/xalan

/**
 * Translates an object of this type to its unboxed representation.
 */ 
public void translateUnBox(ClassGenerator classGen,
        MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
il.append(new CHECKCAST(cpg.addClass(BOOLEAN_CLASS)));
il.append(new INVOKEVIRTUAL(cpg.addMethodref(BOOLEAN_CLASS,
             BOOLEAN_VALUE, 
             BOOLEAN_VALUE_SIG)));
}
origin: xalan/xalan

/**
 * Translates an object of this type to its unboxed representation.
 */ 
public void translateUnBox(ClassGenerator classGen,
        MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
il.append(new CHECKCAST(cpg.addClass(RUNTIME_NODE_CLASS)));
il.append(new GETFIELD(cpg.addFieldref(RUNTIME_NODE_CLASS,
            NODE_FIELD,
            NODE_FIELD_SIG)));
}
origin: xalan/xalan

/**
 * Translates an object of this type to its unboxed representation.
 */ 
public void translateUnBox(ClassGenerator classGen,
        MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
il.append(new CHECKCAST(cpg.addClass(INTEGER_CLASS)));
final int index = cpg.addMethodref(INTEGER_CLASS,
          INT_VALUE, 
          INT_VALUE_SIG);
il.append(new INVOKEVIRTUAL(index));
}
origin: xalan/xalan

  /**
   * Translate a predicate expression. If non of the optimizations apply
   * then this translation pushes two references on the stack: a reference 
   * to a newly created filter object and a reference to the predicate's 
   * closure. See class <code>Step</code> for further details.
   */
  public void translate(ClassGenerator classGen, MethodGenerator methodGen) {

  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();

  if (_nthPositionFilter || _nthDescendant) {
    _exp.translate(classGen, methodGen);
  }
  else if (isNodeValueTest() && (getParent() instanceof Step)) {
    _value.translate(classGen, methodGen);
    il.append(new CHECKCAST(cpg.addClass(STRING_CLASS)));
    il.append(new PUSH(cpg, ((EqualityExpr)_exp).getOp()));
  }
  else {
    translateFilter(classGen, methodGen);
  }
  }
}
origin: xalan/xalan

  "makeNodeSortRecord", "(II)" + NODE_SORT_RECORD_SIG)));
il.append(DUP);
il.append(new CHECKCAST(cpg.addClass(sortRecordClass)));
origin: xalan/xalan

final String className = classGen.getClassName();
il.append(filterGen.loadTranslet());
il.append(new CHECKCAST(cpg.addClass(className)));
il.append(new GETFIELD(cpg.addFieldref(className,
            DOM_FIELD, DOM_INTF_SIG)));
origin: xalan/xalan

           ADD_PARAMETER_SIG)));
if (className != EMPTYSTRING) {
il.append(new CHECKCAST(cpg.addClass(className)));
  il.append(new CHECKCAST(cpg.addClass(className)));
origin: xalan/xalan

il.append(classGen.loadTranslet());
if (classGen.isExternal()) {
il.append(new CHECKCAST(cpg.addClass(className)));
origin: xalan/xalan

il.append(classGen.loadTranslet());
if (classGen.isExternal()) {
il.append(new CHECKCAST(cpg.addClass(className)));
origin: xalan/xalan

il.append(new CHECKCAST(cpg.addClass(className)));
        Util.getJCRefType(DOM_INTF_SIG),
        null, null);
il.append(new CHECKCAST(cpg.addClass(DOM_INTF_SIG)));
newDom.setStart(il.append(new ASTORE(newDom.getIndex())));
origin: xalan/xalan

il.append(new CHECKCAST(cpg.addClass(TRANSLET_CLASS)));
local.setStart(il.append(new ASTORE(local.getIndex())));
nodeCounterGen.setTransletIndex(local.getIndex());
origin: xalan/xalan

il.append(new CHECKCAST(cpg.addClass(className)));
origin: xalan/xalan

if (classGen.isExternal()) {
  final String className = classGen.getClassName();
  il.append(new CHECKCAST(cpg.addClass(className)));
origin: xalan/xalan

il.append(new CHECKCAST(cpg.addClass(classGen.getDOMClass())));
il.append(SWAP);
index = cpg.addMethodref(MULTI_DOM_CLASS,
origin: org.apache.bcel/bcel

public CHECKCAST createCheckCast( final ReferenceType t ) {
  if (t instanceof ArrayType) {
    return new CHECKCAST(cp.addArrayClass((ArrayType) t));
  }
  return new CHECKCAST(cp.addClass((ObjectType) t));
}
origin: bcel/bcel

public CHECKCAST createCheckCast(ReferenceType t) {
 if(t instanceof ArrayType)
  return new CHECKCAST(cp.addArrayClass((ArrayType)t));
 else
  return new CHECKCAST(cp.addClass((ObjectType)t));
}
origin: org.apache.xalan/com.springsource.org.apache.xalan

/**
 * Translates an object of this type to its unboxed representation.
 */ 
public void translateUnBox(ClassGenerator classGen,
        MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
il.append(new CHECKCAST(cpg.addClass(DOUBLE_CLASS)));
il.append(new INVOKEVIRTUAL(cpg.addMethodref(DOUBLE_CLASS,
             DOUBLE_VALUE, 
             DOUBLE_VALUE_SIG)));
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Translates an object of this type to its unboxed representation.
 */ 
public void translateUnBox(ClassGenerator classGen,
        MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
il.append(new CHECKCAST(cpg.addClass(BOOLEAN_CLASS)));
il.append(new INVOKEVIRTUAL(cpg.addMethodref(BOOLEAN_CLASS,
             BOOLEAN_VALUE, 
             BOOLEAN_VALUE_SIG)));
}
org.apache.bcel.genericCHECKCAST<init>

Javadoc

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

Popular methods of CHECKCAST

  • getType
  • getIndex
  • getLoadClassType

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JLabel (javax.swing)
  • JTextField (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ 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