Search Java Code Snippets


  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.





Java - Code Samples

 Sample 1. Code Sample / Example / Snippet of org.apache.bcel.classfile.ConstantNameAndType

    private void visitRef(ConstantCP ccp, boolean method) {

String class_name = ccp.getClass(cp);

add(class_name);



ConstantNameAndType cnat = (ConstantNameAndType) cp.getConstant(ccp.getNameAndTypeIndex(),

Constants.CONSTANT_NameAndType);



String signature = cnat.getSignature(cp);



if (method) {

Type type = Type.getReturnType(signature);



checkType(type);



for (Type type1 : Type.getArgumentTypes(signature)) {

checkType(type1);

}

} else {

checkType(Type.getType(signature));

}

}


   Like      Feedback      org.apache.bcel.classfile.ConstantNameAndType



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner