You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2009/12/06 00:22:52 UTC
svn commit: r887610 [1/6] - in
/tomcat/trunk/java/org/apache/tomcat/util/bcel: ./ classfile/ generic/ util/
Author: markt
Date: Sat Dec 5 23:22:46 2009
New Revision: 887610
URL: http://svn.apache.org/viewvc?rev=887610&view=rev
Log:
Remove unused code identified by Eclipse / UCDetector.
Not complete - still more to remove.
Removed:
tomcat/trunk/java/org/apache/tomcat/util/bcel/ExceptionConstants.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/AALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/AASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ACONST_NULL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ARETURN.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ARRAYLENGTH.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ATHROW.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ArithmeticInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ArrayInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/BALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/BASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/CALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/CASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ClassObserver.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/CompoundInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ConversionInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/D2F.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/D2I.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/D2L.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DADD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DCMPG.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DCMPL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DCONST.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DDIV.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DMUL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DNEG.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DREM.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DRETURN.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DSUB.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DUP.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DUP2.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DUP2_X1.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DUP2_X2.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DUP_X1.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/DUP_X2.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/F2D.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/F2I.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/F2L.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FADD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FCMPG.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FCMPL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FCONST.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FDIV.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FMUL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FNEG.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FREM.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FRETURN.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FSUB.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FieldObserver.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/I2B.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/I2C.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/I2D.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/I2F.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/I2L.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/I2S.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IADD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IAND.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ICONST.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IDIV.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IMUL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/INEG.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IOR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IREM.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IRETURN.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ISHL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ISHR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ISUB.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IUSHR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IXOR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/InstructionListObserver.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/L2D.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/L2F.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/L2I.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LADD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LAND.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LCMP.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LCONST.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LDIV.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LMUL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LNEG.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LOR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LREM.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LRETURN.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LSHL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LSHR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LSUB.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LUSHR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LXOR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/MONITORENTER.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/MONITOREXIT.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/MethodObserver.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/NOP.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/POP.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/POP2.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/PUSH.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/RETURN.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ReturnInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/SALOAD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/SASTORE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/SWAP.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/StackInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/TargetLostException.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/util/ClassLoaderRepository.java
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/Repository.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Annotations.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ArrayElementValue.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/CodeException.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantCP.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantClass.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantDouble.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFieldref.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFloat.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInteger.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInterfaceMethodref.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantLong.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantMethodref.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantNameAndType.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantObject.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantString.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantUtf8.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantValue.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Deprecated.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ElementValuePair.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/EnclosingMethod.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ExceptionTable.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Field.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/FieldOrMethod.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/InnerClass.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/InnerClasses.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/JavaClass.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LineNumber.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LineNumberTable.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LocalVariable.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LocalVariableTable.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LocalVariableTypeTable.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Method.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Node.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/PMGClass.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ParameterAnnotationEntry.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ParameterAnnotations.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Signature.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SourceFile.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMap.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTable.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTableEntry.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapType.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Synthetic.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Unknown.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Visitor.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ANEWARRAY.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/AnnotationElementValueGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/AnnotationEntryGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ArrayElementValueGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ArrayType.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/BIPUSH.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/BranchHandle.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/CHECKCAST.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ClassElementValueGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ClassGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ClassGenException.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/CodeExceptionGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ConstantPoolGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ElementValueGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ElementValuePairGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/EnumElementValueGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ExceptionThrower.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FieldGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FieldGenOrMethodGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FieldInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/FieldOrMethod.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/GETFIELD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/GETSTATIC.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/GOTO.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/GOTO_W.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/GotoInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/IINC.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/INSTANCEOF.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/INVOKEINTERFACE.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/INVOKESPECIAL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/INVOKESTATIC.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/INVOKEVIRTUAL.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/Instruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/InstructionConstants.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/InstructionHandle.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/InstructionList.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/InstructionTargeter.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/InvokeInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/JSR.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/JSR_W.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/JsrInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LDC.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LDC2_W.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LDC_W.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LOOKUPSWITCH.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LineNumberGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LoadClass.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LocalVariableGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/LocalVariableInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/MULTIANEWARRAY.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/MethodGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/NEW.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/NEWARRAY.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/NamedAndTyped.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ObjectType.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/PUTFIELD.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/PUTSTATIC.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/RET.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ReferenceType.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/ReturnaddressType.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/SIPUSH.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/Select.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/SimpleElementValueGen.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/StackConsumer.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/StackProducer.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/TABLESWITCH.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/Type.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/generic/TypedInstruction.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/util/ByteSequence.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/util/ClassPath.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/util/Repository.java
tomcat/trunk/java/org/apache/tomcat/util/bcel/util/SyntheticRepository.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/Constants.java Sat Dec 5 23:22:46 2009
@@ -34,65 +34,29 @@
* */
public final static short MINOR_1_1 = 3;
- /** Major version number of class files for Java 1.2.
- * @see #MINOR_1_2
- * */
- public final static short MAJOR_1_2 = 46;
+
- /** Minor version number of class files for Java 1.2.
- * @see #MAJOR_1_2
- * */
- public final static short MINOR_1_2 = 0;
+
- /** Major version number of class files for Java 1.2.
- * @see #MINOR_1_2
- * */
- public final static short MAJOR_1_3 = 47;
+
- /** Minor version number of class files for Java 1.3.
- * @see #MAJOR_1_3
- * */
- public final static short MINOR_1_3 = 0;
+
- /** Major version number of class files for Java 1.3.
- * @see #MINOR_1_3
- * */
- public final static short MAJOR_1_4 = 48;
+
- /** Minor version number of class files for Java 1.4.
- * @see #MAJOR_1_4
- * */
- public final static short MINOR_1_4 = 0;
+
- /** Major version number of class files for Java 1.4.
- * @see #MINOR_1_4
- * */
- public final static short MAJOR_1_5 = 49;
+
- /** Minor version number of class files for Java 1.5.
- * @see #MAJOR_1_5
- * */
- public final static short MINOR_1_5 = 0;
+
- /** Major version number of class files for Java 1.5.
- * @see #MINOR_1_5
- * */
- public final static short MAJOR_1_6 = 50;
+
- /** Minor version number of class files for Java 1.6.
- * @see #MAJOR_1_6
- * */
- public final static short MINOR_1_6 = 0;
+
- /** Default major version number. Class file is for Java 1.1.
- * @see #MAJOR_1_1
- * */
- public final static short MAJOR = MAJOR_1_1;
+
- /** Default major version number. Class file is for Java 1.1.
- * @see #MAJOR_1_1
- * */
- public final static short MINOR = MINOR_1_1;
+
/** Maximum value for an unsigned short.
*/
@@ -102,22 +66,11 @@
*/
public final static int MAX_BYTE = 255; // 2^8 - 1
- /** One of the access flags for fields, methods, or classes.
- * @see <a href='http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#2877'>Flag definitions for Fields in the Java Virtual Machine Specification (2nd edition).</a>
- * @see <a href='http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#1513'>Flag definitions for Methods in the Java Virtual Machine Specification (2nd edition).</a>
- * @see <a href='http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#88478'>Flag definitions for Classes in the Java Virtual Machine Specification (2nd edition).</a>
- */
- public final static short ACC_PUBLIC = 0x0001;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_PRIVATE = 0x0002;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_PROTECTED = 0x0004;
+
/** One of the access flags for fields, methods, or classes.
* @see #ACC_PUBLIC
@@ -129,35 +82,17 @@
*/
public final static short ACC_FINAL = 0x0010;
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_SYNCHRONIZED = 0x0020;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_SYPER = 0x0020;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_VOLATILE = 0x0040;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_BRIDGE = 0x0040;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_TRANSIENT = 0x0080;
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_VARARGS = 0x0080;
+
/** One of the access flags for fields, methods, or classes.
* @see #ACC_PUBLIC
@@ -174,20 +109,11 @@
*/
public final static short ACC_ABSTRACT = 0x0400;
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_STRICT = 0x0800;
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_SYNTHETIC = 0x1000;
+
+
- /** One of the access flags for fields, methods, or classes.
- * @see #ACC_PUBLIC
- */
- public final static short ACC_ANNOTATION = 0x2000;
+
/** One of the access flags for fields, methods, or classes.
* @see #ACC_PUBLIC
@@ -253,82 +179,34 @@
"CONSTANT_Methodref", "CONSTANT_InterfaceMethodref",
"CONSTANT_NameAndType" };
- /** The name of the static initializer, also called "class
- * initialization method" or "interface initialization
- * method". This is "<clinit>".
- */
- public final static String STATIC_INITIALIZER_NAME = "<clinit>";
+
- /** The name of every constructor method in a class, also called
- * "instance initialization method". This is "<init>".
- */
- public final static String CONSTRUCTOR_NAME = "<init>";
+
- /** The names of the interfaces implemented by arrays */
- public final static String[] INTERFACES_IMPLEMENTED_BY_ARRAYS = {"java.lang.Cloneable", "java.io.Serializable"};
+
- /**
- * One of the limitations of the Java Virtual Machine.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#88659"> The Java Virtual Machine Specification, Second Edition, page 152, chapter 4.10.</a>
- */
- public static final int MAX_CP_ENTRIES = 65535;
+
- /**
- * One of the limitations of the Java Virtual Machine.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#88659"> The Java Virtual Machine Specification, Second Edition, page 152, chapter 4.10.</a>
- */
- public static final int MAX_CODE_SIZE = 65536; //bytes
+
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short NOP = 0;
+
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ACONST_NULL = 1;
+
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_M1 = 2;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_0 = 3;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_1 = 4;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_2 = 5;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_3 = 6;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_4 = 7;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ICONST_5 = 8;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short LCONST_0 = 9;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short LCONST_1 = 10;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short FCONST_0 = 11;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short FCONST_1 = 12;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short FCONST_2 = 13;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DCONST_0 = 14;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DCONST_1 = 15;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short BIPUSH = 16;
@@ -542,33 +420,15 @@
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short SASTORE = 86;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short POP = 87;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short POP2 = 88;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DUP = 89;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DUP_X1 = 90;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DUP_X2 = 91;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DUP2 = 92;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DUP2_X1 = 93;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DUP2_X2 = 94;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short SWAP = 95;
+
+
+
+
+
+
+
+
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short IADD = 96;
@@ -719,36 +579,20 @@
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short I2B = 145;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short INT2BYTE = 145; // Old notion
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short I2C = 146;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short INT2CHAR = 146; // Old notion
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short I2S = 147;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short INT2SHORT = 147; // Old notion
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short LCMP = 148;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short FCMPL = 149;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short FCMPG = 150;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DCMPL = 151;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short DCMPG = 152;
+
+
+
+
+
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short IFEQ = 153;
@@ -842,18 +686,14 @@
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short INVOKESPECIAL = 183;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short INVOKENONVIRTUAL = 183; // Old name in JDK 1.0
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short INVOKESTATIC = 184;
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short INVOKEINTERFACE = 185;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short INVOKEDYNAMIC = 186;
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short NEW = 187;
@@ -863,24 +703,16 @@
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short ANEWARRAY = 189;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ARRAYLENGTH = 190;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short ATHROW = 191;
+
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short CHECKCAST = 192;
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short INSTANCEOF = 193;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short MONITORENTER = 194;
- /** Java VM opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
- public static final short MONITOREXIT = 195;
+
+
/** Java VM opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html">Opcode definitions in The Java Virtual Machine Specification</a> */
public static final short WIDE = 196;
@@ -903,106 +735,31 @@
/** JVM internal opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions.doc.html#60105">Reserved opcodes in the Java Virtual Machine Specification</a> */
public static final short BREAKPOINT = 202;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short LDC_QUICK = 203;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short LDC_W_QUICK = 204;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short LDC2_W_QUICK = 205;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short GETFIELD_QUICK = 206;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short PUTFIELD_QUICK = 207;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short GETFIELD2_QUICK = 208;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short PUTFIELD2_QUICK = 209;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short GETSTATIC_QUICK = 210;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short PUTSTATIC_QUICK = 211;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short GETSTATIC2_QUICK = 212;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short PUTSTATIC2_QUICK = 213;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKEVIRTUAL_QUICK = 214;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKENONVIRTUAL_QUICK = 215;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKESUPER_QUICK = 216;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKESTATIC_QUICK = 217;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKEINTERFACE_QUICK = 218;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKEVIRTUALOBJECT_QUICK = 219;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short NEW_QUICK = 221;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short ANEWARRAY_QUICK = 222;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short MULTIANEWARRAY_QUICK = 223;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short CHECKCAST_QUICK = 224;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INSTANCEOF_QUICK = 225;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short INVOKEVIRTUAL_QUICK_W = 226;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short GETFIELD_QUICK_W = 227;
- /** JVM internal opcode.
- * @see <a href="http://java.sun.com/docs/books/jvms/first_edition/html/Quick.doc.html#10673">Specification of _quick opcodes in the Java Virtual Machine Specification (version 1)</a>
- * @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/ChangesAppendix.doc.html#448885">Why the _quick opcodes were removed from the second version of the Java Virtual Machine Specification.</a> */
- public static final short PUTFIELD_QUICK_W = 228;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/** JVM internal opcode.
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions.doc.html#60105">Reserved opcodes in the Java Virtual Machine Specification</a> */
public static final short IMPDEP1 = 254;
@@ -1010,16 +767,8 @@
* @see <a href="http://java.sun.com/docs/books/jvms/second_edition/html/Instructions.doc.html#60105">Reserved opcodes in the Java Virtual Machine Specification</a> */
public static final short IMPDEP2 = 255;
- /**
- * BCEL virtual instruction for pushing an arbitrary data type onto the stack. Will be converted to the appropriate JVM
- * opcode when the class is dumped.
- */
- public static final short PUSH = 4711;
- /**
- * BCEL virtual instruction for either LOOKUPSWITCH or TABLESWITCH. Will be converted to the appropriate JVM
- * opcode when the class is dumped.
- */
- public static final short SWITCH = 4712;
+
+
/** Illegal opcode. */
public static final short UNDEFINED = -1;
@@ -1071,16 +820,7 @@
"void", "array", "object", "unknown", "address"
};
- /** The primitive class names corresponding to the T_XX constants,
- * e.g., CLASS_TYPE_NAMES[T_INT] = "java.lang.Integer"
- */
- public static final String[] CLASS_TYPE_NAMES = {
- ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE,
- "java.lang.Boolean", "java.lang.Character", "java.lang.Float",
- "java.lang.Double", "java.lang.Byte", "java.lang.Short",
- "java.lang.Integer", "java.lang.Long", "java.lang.Void",
- ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE
- };
+
/** The signature characters corresponding to primitive types,
* e.g., SHORT_TYPE_NAMES[T_INT] = "I"
@@ -1430,12 +1170,12 @@
/** Constants used in the StackMap attribute.
*/
public static final byte ITEM_Bogus = 0;
- public static final byte ITEM_Integer = 1;
- public static final byte ITEM_Float = 2;
- public static final byte ITEM_Double = 3;
- public static final byte ITEM_Long = 4;
- public static final byte ITEM_Null = 5;
- public static final byte ITEM_InitObject = 6;
+
+
+
+
+
+
public static final byte ITEM_Object = 7;
public static final byte ITEM_NewObject = 8;
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/Repository.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/Repository.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/Repository.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/Repository.java Sat Dec 5 23:22:46 2009
@@ -16,9 +16,7 @@
*/
package org.apache.tomcat.util.bcel;
-import java.io.IOException;
import org.apache.tomcat.util.bcel.classfile.JavaClass;
-import org.apache.tomcat.util.bcel.util.ClassPath;
import org.apache.tomcat.util.bcel.util.SyntheticRepository;
/**
@@ -37,18 +35,10 @@
private static org.apache.tomcat.util.bcel.util.Repository _repository = SyntheticRepository.getInstance();
- /** @return currently used repository instance
- */
- public static org.apache.tomcat.util.bcel.util.Repository getRepository() {
- return _repository;
- }
+
- /** Set repository instance to be used for class loading
- */
- public static void setRepository( org.apache.tomcat.util.bcel.util.Repository rep ) {
- _repository = rep;
- }
+
/** Lookup class somewhere found on your CLASSPATH, or whereever the
@@ -63,114 +53,34 @@
}
- /**
- * Try to find class source using the internal repository instance.
- * @see Class
- * @return JavaClass object for given runtime class
- * @throws ClassNotFoundException if the class could not be found or
- * parsed correctly
- */
- public static JavaClass lookupClass( Class clazz ) throws ClassNotFoundException {
- return _repository.loadClass(clazz);
- }
+
- /**
- * @return class file object for given Java class by looking on the
- * system class path; returns null if the class file can't be
- * found
- */
- public static ClassPath.ClassFile lookupClassFile( String class_name ) {
- try {
- ClassPath path = _repository.getClassPath();
- if (path == null) {
- return null;
- }
- return path.getClassFile(class_name);
- } catch (IOException e) {
- return null;
- }
- }
+
- /** Clear the repository.
- */
- public static void clearCache() {
- _repository.clear();
- }
+
- /**
- * Add clazz to repository if there isn't an equally named class already in there.
- *
- * @return old entry in repository
- */
- public static JavaClass addClass( JavaClass clazz ) {
- JavaClass old = _repository.findClass(clazz.getClassName());
- _repository.storeClass(clazz);
- return old;
- }
+
- /**
- * Remove class with given (fully qualified) name from repository.
- */
- public static void removeClass( String clazz ) {
- _repository.removeClass(_repository.findClass(clazz));
- }
+
- /**
- * Remove given class from repository.
- */
- public static void removeClass( JavaClass clazz ) {
- _repository.removeClass(clazz);
- }
+
- /**
- * @return list of super classes of clazz in ascending order, i.e.,
- * Object is always the last element
- * @throws ClassNotFoundException if any of the superclasses can't be found
- */
- public static JavaClass[] getSuperClasses( JavaClass clazz ) throws ClassNotFoundException {
- return clazz.getSuperClasses();
- }
+
- /**
- * @return list of super classes of clazz in ascending order, i.e.,
- * Object is always the last element.
- * @throws ClassNotFoundException if the named class or any of its
- * superclasses can't be found
- */
- public static JavaClass[] getSuperClasses( String class_name ) throws ClassNotFoundException {
- JavaClass jc = lookupClass(class_name);
- return getSuperClasses(jc);
- }
+
- /**
- * @return all interfaces implemented by class and its super
- * classes and the interfaces that those interfaces extend, and so on.
- * (Some people call this a transitive hull).
- * @throws ClassNotFoundException if any of the class's
- * superclasses or superinterfaces can't be found
- */
- public static JavaClass[] getInterfaces( JavaClass clazz ) throws ClassNotFoundException {
- return clazz.getAllInterfaces();
- }
+
- /**
- * @return all interfaces implemented by class and its super
- * classes and the interfaces that extend those interfaces, and so on
- * @throws ClassNotFoundException if the named class can't be found,
- * or if any of its superclasses or superinterfaces can't be found
- */
- public static JavaClass[] getInterfaces( String class_name ) throws ClassNotFoundException {
- return getInterfaces(lookupClass(class_name));
- }
+
/**
@@ -185,35 +95,13 @@
}
- /**
- * @return true, if clazz is an instance of super_class
- * @throws ClassNotFoundException if either clazz or super_class
- * can't be found
- */
- public static boolean instanceOf( String clazz, String super_class )
- throws ClassNotFoundException {
- return instanceOf(lookupClass(clazz), lookupClass(super_class));
- }
+
- /**
- * @return true, if clazz is an instance of super_class
- * @throws ClassNotFoundException if super_class can't be found
- */
- public static boolean instanceOf( JavaClass clazz, String super_class )
- throws ClassNotFoundException {
- return instanceOf(clazz, lookupClass(super_class));
- }
+
- /**
- * @return true, if clazz is an instance of super_class
- * @throws ClassNotFoundException if clazz can't be found
- */
- public static boolean instanceOf( String clazz, JavaClass super_class )
- throws ClassNotFoundException {
- return instanceOf(lookupClass(clazz), super_class);
- }
+
/**
@@ -227,35 +115,11 @@
}
- /**
- * @return true, if clazz is an implementation of interface inter
- * @throws ClassNotFoundException if clazz, inter, or any superclasses
- * or superinterfaces of clazz can't be found
- */
- public static boolean implementationOf( String clazz, String inter )
- throws ClassNotFoundException {
- return implementationOf(lookupClass(clazz), lookupClass(inter));
- }
+
- /**
- * @return true, if clazz is an implementation of interface inter
- * @throws ClassNotFoundException if inter or any superclasses
- * or superinterfaces of clazz can't be found
- */
- public static boolean implementationOf( JavaClass clazz, String inter )
- throws ClassNotFoundException {
- return implementationOf(clazz, lookupClass(inter));
- }
+
- /**
- * @return true, if clazz is an implementation of interface inter
- * @throws ClassNotFoundException if clazz or any superclasses or
- * superinterfaces of clazz can't be found
- */
- public static boolean implementationOf( String clazz, JavaClass inter )
- throws ClassNotFoundException {
- return implementationOf(lookupClass(clazz), inter);
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AccessFlags.java Sat Dec 5 23:22:46 2009
@@ -34,152 +34,73 @@
}
- /**
- * @param a inital access flags
- */
- public AccessFlags(int a) {
- access_flags = a;
- }
+
- /**
- * @return Access flags of the object aka. "modifiers".
- */
- public final int getAccessFlags() {
- return access_flags;
- }
+
- /**
- * @return Access flags of the object aka. "modifiers".
- */
- public final int getModifiers() {
- return access_flags;
- }
+
- /** Set access flags aka "modifiers".
- * @param access_flags Access flags of the object.
- */
- public final void setAccessFlags( int access_flags ) {
- this.access_flags = access_flags;
- }
+
- /** Set access flags aka "modifiers".
- * @param access_flags Access flags of the object.
- */
- public final void setModifiers( int access_flags ) {
- setAccessFlags(access_flags);
- }
+
- private final void setFlag( int flag, boolean set ) {
- if ((access_flags & flag) != 0) { // Flag is set already
- if (!set) {
- access_flags ^= flag;
- }
- } else { // Flag not set
- if (set) {
- access_flags |= flag;
- }
- }
- }
+
- public final void isPublic( boolean flag ) {
- setFlag(Constants.ACC_PUBLIC, flag);
- }
+
- public final boolean isPublic() {
- return (access_flags & Constants.ACC_PUBLIC) != 0;
- }
+
- public final void isPrivate( boolean flag ) {
- setFlag(Constants.ACC_PRIVATE, flag);
- }
+
- public final boolean isPrivate() {
- return (access_flags & Constants.ACC_PRIVATE) != 0;
- }
+
- public final void isProtected( boolean flag ) {
- setFlag(Constants.ACC_PROTECTED, flag);
- }
+
- public final boolean isProtected() {
- return (access_flags & Constants.ACC_PROTECTED) != 0;
- }
+
- public final void isStatic( boolean flag ) {
- setFlag(Constants.ACC_STATIC, flag);
- }
+
- public final boolean isStatic() {
- return (access_flags & Constants.ACC_STATIC) != 0;
- }
+
- public final void isFinal( boolean flag ) {
- setFlag(Constants.ACC_FINAL, flag);
- }
+
- public final boolean isFinal() {
- return (access_flags & Constants.ACC_FINAL) != 0;
- }
+
- public final void isSynchronized( boolean flag ) {
- setFlag(Constants.ACC_SYNCHRONIZED, flag);
- }
+
- public final boolean isSynchronized() {
- return (access_flags & Constants.ACC_SYNCHRONIZED) != 0;
- }
+
- public final void isVolatile( boolean flag ) {
- setFlag(Constants.ACC_VOLATILE, flag);
- }
+
- public final boolean isVolatile() {
- return (access_flags & Constants.ACC_VOLATILE) != 0;
- }
+
- public final void isTransient( boolean flag ) {
- setFlag(Constants.ACC_TRANSIENT, flag);
- }
-
-
- public final boolean isTransient() {
- return (access_flags & Constants.ACC_TRANSIENT) != 0;
- }
-
+
- public final void isNative( boolean flag ) {
- setFlag(Constants.ACC_NATIVE, flag);
- }
+
- public final boolean isNative() {
- return (access_flags & Constants.ACC_NATIVE) != 0;
- }
-
- public final void isInterface( boolean flag ) {
- setFlag(Constants.ACC_INTERFACE, flag);
- }
+
public final boolean isInterface() {
@@ -187,52 +108,32 @@
}
- public final void isAbstract( boolean flag ) {
- setFlag(Constants.ACC_ABSTRACT, flag);
- }
+
- public final boolean isAbstract() {
- return (access_flags & Constants.ACC_ABSTRACT) != 0;
- }
+
- public final void isStrictfp( boolean flag ) {
- setFlag(Constants.ACC_STRICT, flag);
- }
+
- public final boolean isStrictfp() {
- return (access_flags & Constants.ACC_STRICT) != 0;
- }
+
- public final void isSynthetic( boolean flag ) {
- setFlag(Constants.ACC_SYNTHETIC, flag);
- }
+
- public final boolean isSynthetic() {
- return (access_flags & Constants.ACC_SYNTHETIC) != 0;
- }
+
- public final void isAnnotation( boolean flag ) {
- setFlag(Constants.ACC_ANNOTATION, flag);
- }
+
- public final boolean isAnnotation() {
- return (access_flags & Constants.ACC_ANNOTATION) != 0;
- }
+
- public final void isEnum( boolean flag ) {
- setFlag(Constants.ACC_ENUM, flag);
- }
+
- public final boolean isEnum() {
- return (access_flags & Constants.ACC_ENUM) != 0;
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java Sat Dec 5 23:22:46 2009
@@ -94,13 +94,7 @@
default_value = defaultValue;
}
- /**
- * @return the default value
- */
- public final ElementValue getDefaultValue()
- {
- return default_value;
- }
+
public Attribute copy(ConstantPool _constant_pool)
{
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java Sat Dec 5 23:22:46 2009
@@ -64,16 +64,7 @@
}
- /**
- * Called by objects that are traversing the nodes of the tree implicitely
- * defined by the contents of a Java class. I.e., the hierarchy of methods,
- * fields, attributes, etc. spawns a tree of objects.
- *
- * @param v Visitor object
- */
- public void accept( Visitor v ) {
- // v.visitAnnotationEntry(this);
- }
+
/**
@@ -94,12 +85,7 @@
}
- /**
- * @return the number of element value pairs in this annotation entry
- */
- public final int getNumElementValuePairs() {
- return num_element_value_pairs;
- }
+
/**
@@ -132,21 +118,5 @@
element_value_pairs.add(elementNameValuePair);
}
- public String toShortString()
- {
- StringBuffer result = new StringBuffer();
- result.append("@");
- result.append(getAnnotationType());
- if (getElementValuePairs().length > 0)
- {
- result.append("(");
- for (int i = 0; i < getElementValuePairs().length; i++)
- {
- ElementValuePair element = getElementValuePairs()[i];
- result.append(element.toShortString());
- }
- result.append(")");
- }
- return result.toString();
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Annotations.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Annotations.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Annotations.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Annotations.java Sat Dec 5 23:22:46 2009
@@ -106,17 +106,9 @@
}
- /**
- * @return the number of annotation entries in this annotation
- */
- public final int getNumAnnotations() {
- return annotation_table_length;
- }
- public boolean isRuntimeVisible()
- {
- return isRuntimeVisible;
- }
+
+
protected void writeAnnotations(DataOutputStream dos) throws IOException
{
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ArrayElementValue.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ArrayElementValue.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ArrayElementValue.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ArrayElementValue.java Sat Dec 5 23:22:46 2009
@@ -60,8 +60,5 @@
return evalues;
}
- public int getElementValuesArraySize()
- {
- return evalues.length;
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java Sat Dec 5 23:22:46 2009
@@ -91,31 +91,9 @@
private static Map readers = new HashMap();
- /**
- * Add an Attribute reader capable of parsing (user-defined) attributes
- * named "name". You should not add readers for the standard attributes such
- * as "LineNumberTable", because those are handled internally.
- *
- * @param name
- * the name of the attribute as stored in the class file
- * @param r
- * the reader object
- */
- public static void addAttributeReader(String name, AttributeReader r)
- {
- readers.put(name, r);
- }
+
- /**
- * Remove attribute reader
- *
- * @param name
- * the name of the attribute as stored in the class file
- */
- public static void removeAttributeReader(String name)
- {
- readers.remove(name);
- }
+
/*
* Class method reads one attribute from the input data stream. This method
@@ -226,39 +204,13 @@
return c.getBytes();
}
- /**
- * @return Length of attribute field in bytes.
- */
- public final int getLength()
- {
- return length;
- }
+
- /**
- * @param length
- * length in bytes.
- */
- public final void setLength(int length)
- {
- this.length = length;
- }
+
- /**
- * @param name_index
- * of attribute.
- */
- public final void setNameIndex(int name_index)
- {
- this.name_index = name_index;
- }
+
- /**
- * @return Name index in constant pool of attribute name.
- */
- public final int getNameIndex()
- {
- return name_index;
- }
+
/**
* @return Tag of attribute, i.e., its type. Value may not be altered, thus
@@ -269,24 +221,9 @@
return tag;
}
- /**
- * @return Constant pool used by this object.
- * @see ConstantPool
- */
- public final ConstantPool getConstantPool()
- {
- return constant_pool;
- }
+
- /**
- * @param constant_pool
- * Constant pool to be used for this object.
- * @see ConstantPool
- */
- public final void setConstantPool(ConstantPool constant_pool)
- {
- this.constant_pool = constant_pool;
- }
+
/**
* Use copy() if you want to have a deep copy(), i.e., with all references
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java Sat Dec 5 23:22:46 2009
@@ -78,28 +78,10 @@
}
- /** Parse class from given .class file.
- *
- * @param file_name file name
- */
- public ClassParser(String file_name) {
- is_zip = false;
- this.file_name = file_name;
- fileOwned = true;
- }
+
- /** Parse class from given .class file in a ZIP-archive
- *
- * @param zip_file zip file name
- * @param file_name file name
- */
- public ClassParser(String zip_file, String file_name) {
- is_zip = true;
- fileOwned = true;
- this.zip_file = zip_file;
- this.file_name = file_name;
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Code.java Sat Dec 5 23:22:46 2009
@@ -52,14 +52,7 @@
private Attribute[] attributes; // or LocalVariable
- /**
- * Initialize from another object. Note that both objects use the same
- * references (shallow copy). Use copy() for a physical copy.
- */
- public Code(Code c) {
- this(c.getNameIndex(), c.getLength(), c.getMaxStack(), c.getMaxLocals(), c.getCode(), c
- .getExceptionTable(), c.getAttributes(), c.getConstantPool());
- }
+
/**
@@ -156,26 +149,10 @@
}
- /**
- * @return Collection of code attributes.
- * @see Attribute
- */
- public final Attribute[] getAttributes() {
- return attributes;
- }
+
- /**
- * @return LineNumberTable of Code, if it has one
- */
- public LineNumberTable getLineNumberTable() {
- for (int i = 0; i < attributes_count; i++) {
- if (attributes[i] instanceof LineNumberTable) {
- return (LineNumberTable) attributes[i];
- }
- }
- return null;
- }
+
/**
@@ -191,37 +168,16 @@
}
- /**
- * @return Actual byte code of the method.
- */
- public final byte[] getCode() {
- return code;
- }
+
- /**
- * @return Table of handled exceptions.
- * @see CodeException
- */
- public final CodeException[] getExceptionTable() {
- return exception_table;
- }
+
- /**
- * @return Number of local variables.
- */
- public final int getMaxLocals() {
- return max_locals;
- }
+
- /**
- * @return Maximum size of stack used by this method.
- */
- public final int getMaxStack() {
- return max_stack;
- }
+
/**
@@ -278,20 +234,10 @@
}
- /**
- * @param max_locals maximum number of local variables
- */
- public final void setMaxLocals( int max_locals ) {
- this.max_locals = max_locals;
- }
+
- /**
- * @param max_stack maximum stack size
- */
- public final void setMaxStack( int max_stack ) {
- this.max_stack = max_stack;
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/CodeException.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/CodeException.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/CodeException.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/CodeException.java Sat Dec 5 23:22:46 2009
@@ -45,12 +45,7 @@
*/
- /**
- * Initialize from another object.
- */
- public CodeException(CodeException c) {
- this(c.getStartPC(), c.getEndPC(), c.getHandlerPC(), c.getCatchType());
- }
+
/**
@@ -82,16 +77,7 @@
}
- /**
- * Called by objects that are traversing the nodes of the tree implicitely
- * defined by the contents of a Java class. I.e., the hierarchy of methods,
- * fields, attributes, etc. spawns a tree of objects.
- *
- * @param v Visitor object
- */
- public void accept( Visitor v ) {
- v.visitCodeException(this);
- }
+
/**
@@ -108,69 +94,28 @@
}
- /**
- * @return 0, if the handler catches any exception, otherwise it points to
- * the exception class which is to be caught.
- */
- public final int getCatchType() {
- return catch_type;
- }
+
- /**
- * @return Exclusive end index of the region where the handler is active.
- */
- public final int getEndPC() {
- return end_pc;
- }
+
- /**
- * @return Starting address of exception handler, relative to the code.
- */
- public final int getHandlerPC() {
- return handler_pc;
- }
+
- /**
- * @return Inclusive start index of the region where the handler is active.
- */
- public final int getStartPC() {
- return start_pc;
- }
+
- /**
- * @param catch_type the type of exception that is caught
- */
- public final void setCatchType( int catch_type ) {
- this.catch_type = catch_type;
- }
+
- /**
- * @param end_pc end of handled block
- */
- public final void setEndPC( int end_pc ) {
- this.end_pc = end_pc;
- }
+
- /**
- * @param handler_pc where the actual code is
- */
- public final void setHandlerPC( int handler_pc ) {
- this.handler_pc = handler_pc;
- }
+
- /**
- * @param start_pc start of handled block
- */
- public final void setStartPC( int start_pc ) {
- this.start_pc = start_pc;
- }
+
/**
@@ -197,9 +142,7 @@
}
- public final String toString( ConstantPool cp ) {
- return toString(cp, true);
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java Sat Dec 5 23:22:46 2009
@@ -93,16 +93,7 @@
}
- /**
- * @return deep copy of this constant
- */
- public Constant copy() {
- try {
- return (Constant) super.clone();
- } catch (CloneNotSupportedException e) {
- }
- return null;
- }
+
public Object clone() throws CloneNotSupportedException {
@@ -148,20 +139,10 @@
}
- /**
- * @return Comparison strategy object
- */
- public static BCELComparator getComparator() {
- return _cmp;
- }
+
- /**
- * @param comparator Comparison strategy object
- */
- public static void setComparator( BCELComparator comparator ) {
- _cmp = comparator;
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantCP.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantCP.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantCP.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantCP.java Sat Dec 5 23:22:46 2009
@@ -20,8 +20,6 @@
import java.io.DataOutputStream;
import java.io.IOException;
-import org.apache.tomcat.util.bcel.Constants;
-
/**
* Abstract super class for Fieldref and Methodref constants.
*
@@ -38,12 +36,7 @@
protected int class_index, name_and_type_index;
- /**
- * Initialize from another object.
- */
- public ConstantCP(ConstantCP c) {
- this(c.getTag(), c.getClassIndex(), c.getNameAndTypeIndex());
- }
+
/**
@@ -98,28 +91,13 @@
}
- /**
- * @param class_index points to Constant_class
- */
- public final void setClassIndex( int class_index ) {
- this.class_index = class_index;
- }
+
- /**
- * @return Class this field belongs to.
- */
- public String getClass( ConstantPool cp ) {
- return cp.constantToString(class_index, Constants.CONSTANT_Class);
- }
+
- /**
- * @param name_and_type_index points to Constant_NameAndType
- */
- public final void setNameAndTypeIndex( int name_and_type_index ) {
- this.name_and_type_index = name_and_type_index;
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantClass.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantClass.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantClass.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantClass.java Sat Dec 5 23:22:46 2009
@@ -36,12 +36,7 @@
private int name_index; // Identical to ConstantString except for the name
- /**
- * Initialize from another object.
- */
- public ConstantClass(ConstantClass c) {
- this(c.getNameIndex());
- }
+
/**
@@ -97,27 +92,13 @@
}
- /**
- * @param name_index the name index in the constant pool of this Constant Class
- */
- public final void setNameIndex( int name_index ) {
- this.name_index = name_index;
- }
+
- /** @return String object
- */
- public Object getConstantValue( ConstantPool cp ) {
- Constant c = cp.getConstant(name_index, Constants.CONSTANT_Utf8);
- return ((ConstantUtf8) c).getBytes();
- }
+
- /** @return dereferenced string
- */
- public String getBytes( ConstantPool cp ) {
- return (String) getConstantValue(cp);
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantDouble.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantDouble.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantDouble.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantDouble.java Sat Dec 5 23:22:46 2009
@@ -45,12 +45,7 @@
}
- /**
- * Initialize from another object.
- */
- public ConstantDouble(ConstantDouble c) {
- this(c.getBytes());
- }
+
/**
@@ -96,12 +91,7 @@
}
- /**
- * @param bytes the raw bytes that represent the double value
- */
- public final void setBytes( double bytes ) {
- this.bytes = bytes;
- }
+
/**
@@ -112,9 +102,5 @@
}
- /** @return Double object
- */
- public Object getConstantValue( ConstantPool cp ) {
- return new Double(bytes);
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFieldref.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFieldref.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFieldref.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFieldref.java Sat Dec 5 23:22:46 2009
@@ -28,12 +28,7 @@
*/
public final class ConstantFieldref extends ConstantCP {
- /**
- * Initialize from another object.
- */
- public ConstantFieldref(ConstantFieldref c) {
- super(Constants.CONSTANT_Fieldref, c.getClassIndex(), c.getNameAndTypeIndex());
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFloat.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFloat.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFloat.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantFloat.java Sat Dec 5 23:22:46 2009
@@ -45,13 +45,7 @@
}
- /**
- * Initialize from another object. Note that both objects use the same
- * references (shallow copy). Use clone() for a physical copy.
- */
- public ConstantFloat(ConstantFloat c) {
- this(c.getBytes());
- }
+
/**
@@ -97,12 +91,7 @@
}
- /**
- * @param bytes the raw bytes that represent this float
- */
- public final void setBytes( float bytes ) {
- this.bytes = bytes;
- }
+
/**
@@ -113,9 +102,5 @@
}
- /** @return Float object
- */
- public Object getConstantValue( ConstantPool cp ) {
- return new Float(bytes);
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInteger.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInteger.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInteger.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInteger.java Sat Dec 5 23:22:46 2009
@@ -45,12 +45,7 @@
}
- /**
- * Initialize from another object.
- */
- public ConstantInteger(ConstantInteger c) {
- this(c.getBytes());
- }
+
/**
@@ -96,12 +91,7 @@
}
- /**
- * @param bytes the raw bytes that represent this integer
- */
- public final void setBytes( int bytes ) {
- this.bytes = bytes;
- }
+
/**
@@ -112,9 +102,5 @@
}
- /** @return Integer object
- */
- public Object getConstantValue( ConstantPool cp ) {
- return new Integer(bytes);
- }
+
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInterfaceMethodref.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInterfaceMethodref.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInterfaceMethodref.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantInterfaceMethodref.java Sat Dec 5 23:22:46 2009
@@ -28,12 +28,7 @@
*/
public final class ConstantInterfaceMethodref extends ConstantCP {
- /**
- * Initialize from another object.
- */
- public ConstantInterfaceMethodref(ConstantInterfaceMethodref c) {
- super(Constants.CONSTANT_InterfaceMethodref, c.getClassIndex(), c.getNameAndTypeIndex());
- }
+
/**
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantLong.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantLong.java?rev=887610&r1=887609&r2=887610&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantLong.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantLong.java Sat Dec 5 23:22:46 2009
@@ -45,12 +45,7 @@
}
- /**
- * Initialize from another object.
- */
- public ConstantLong(ConstantLong c) {
- this(c.getBytes());
- }
+
/**
@@ -96,12 +91,7 @@
}
- /**
- * @param bytes thr raw bytes that represent this long
- */
- public final void setBytes( long bytes ) {
- this.bytes = bytes;
- }
+
/**
@@ -112,9 +102,5 @@
}
- /** @return Long object
- */
- public Object getConstantValue( ConstantPool cp ) {
- return new Long(bytes);
- }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org