protected void initialize() { for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { this.typeAnnotations[i].initialize(); } super.initialize(); } protected void reset() {
protected void reset() { for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { this.typeAnnotations[i].reset(); } super.reset(); } protected void toStringContent(StringBuffer buffer) {
TypeAnnotationInfo(byte[] classFileBytes, int[] contantPoolOffsets, int offset, boolean runtimeVisible, boolean populate) { this(classFileBytes, contantPoolOffsets, offset); this.readOffset = 0; this.targetType = u1At(0); switch (this.targetType) { case AnnotationTargetTypeConstants.CLASS_TYPE_PARAMETER: case AnnotationTargetTypeConstants.METHOD_TYPE_PARAMETER: this.info = u1At(1); // typeParameterIndex this.readOffset += 2; break; this.info = u2At(1); // supertypeIndex this.readOffset += 3; break; this.info = u1At(1); // typeParameterIndex this.info2 = u1At(2); // boundIndex; this.readOffset += 3; break; this.info = u1At(1); // methodFormalParameterIndex this.readOffset += 2; break; this.info = u2At(1); // throwsTypeIndex this.readOffset += 3; break; int typePathLength = u1At(this.readOffset); this.readOffset ++;
TypeAnnotationInfo[] decodeTypeAnnotations(int offset, boolean runtimeVisible) { int numberOfAnnotations = u2At(offset + 6); if (numberOfAnnotations > 0) { int readOffset = offset + 8; TypeAnnotationInfo[] typeAnnos = new TypeAnnotationInfo[numberOfAnnotations]; for (int i = 0; i < numberOfAnnotations; i++) { TypeAnnotationInfo newInfo = new TypeAnnotationInfo(this.reference, this.constantPoolOffsets, readOffset + this.structOffset, runtimeVisible, false); readOffset += newInfo.readOffset; typeAnnos[i] = newInfo; } return typeAnnos; } return null; }
protected void toStringContent(StringBuffer buffer) { super.toStringContent(buffer); buffer.append("type annotations = \n");//$NON-NLS-1$ for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { buffer.append(this.typeAnnotations[i].toString()); buffer.append('\n'); } } }
TypeAnnotationInfo[] decodeTypeAnnotations(int offset, boolean runtimeVisible) { int numberOfAnnotations = u2At(offset + 6); if (numberOfAnnotations > 0) { int readOffset = offset + 8; TypeAnnotationInfo[] typeAnnos = new TypeAnnotationInfo[numberOfAnnotations]; for (int i = 0; i < numberOfAnnotations; i++) { TypeAnnotationInfo newInfo = new TypeAnnotationInfo(this.reference, this.constantPoolOffsets, readOffset + this.structOffset, runtimeVisible, false); readOffset += newInfo.readOffset; typeAnnos[i] = newInfo; } return typeAnnos; } return null; }
protected void toStringContent(StringBuffer buffer) { super.toStringContent(buffer); buffer.append("type annotations = \n");//$NON-NLS-1$ for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { buffer.append(this.typeAnnotations[i].toString()); buffer.append('\n'); } } }
TypeAnnotationInfo(byte[] classFileBytes, int[] contantPoolOffsets, int offset, boolean runtimeVisible, boolean populate) { this(classFileBytes, contantPoolOffsets, offset); this.readOffset = 0; this.targetType = u1At(0); switch (this.targetType) { case AnnotationTargetTypeConstants.CLASS_TYPE_PARAMETER: case AnnotationTargetTypeConstants.METHOD_TYPE_PARAMETER: this.info = u1At(1); // typeParameterIndex this.readOffset += 2; break; this.info = u2At(1); // supertypeIndex this.readOffset += 3; break; this.info = u1At(1); // typeParameterIndex this.info2 = u1At(2); // boundIndex; this.readOffset += 3; break; this.info = u1At(1); // methodFormalParameterIndex this.readOffset += 2; break; this.info = u2At(1); // throwsTypeIndex this.readOffset += 3; break; int typePathLength = u1At(this.readOffset); this.readOffset ++;
TypeAnnotationInfo[] decodeTypeAnnotations(int offset, boolean runtimeVisible) { int numberOfAnnotations = u2At(offset + 6); if (numberOfAnnotations > 0) { int readOffset = offset + 8; TypeAnnotationInfo[] typeAnnos = new TypeAnnotationInfo[numberOfAnnotations]; for (int i = 0; i < numberOfAnnotations; i++) { TypeAnnotationInfo newInfo = new TypeAnnotationInfo(this.reference, this.constantPoolOffsets, readOffset + this.structOffset, runtimeVisible, false); readOffset += newInfo.readOffset; typeAnnos[i] = newInfo; } return typeAnnos; } return null; }
protected void initialize() { for (int i = 0, max = this.typeAnnotations.length; i < max; i++) this.typeAnnotations[i].initialize(); super.initialize(); } protected void reset() {
@Override protected void reset() { for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { this.typeAnnotations[i].reset(); } super.reset(); } }
protected void toStringContent(StringBuffer buffer) { super.toStringContent(buffer); buffer.append("type annotations = \n");//$NON-NLS-1$ for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { buffer.append(this.typeAnnotations[i].toString()); buffer.append('\n'); } } }
TypeAnnotationInfo(byte[] classFileBytes, int[] contantPoolOffsets, int offset, boolean runtimeVisible, boolean populate) { this(classFileBytes, contantPoolOffsets, offset); this.readOffset = 0; this.targetType = u1At(0); switch (this.targetType) { case AnnotationTargetTypeConstants.CLASS_TYPE_PARAMETER: case AnnotationTargetTypeConstants.METHOD_TYPE_PARAMETER: this.info = u1At(1); // typeParameterIndex this.readOffset += 2; break; this.info = u2At(1); // supertypeIndex this.readOffset += 3; break; this.info = u1At(1); // typeParameterIndex this.info2 = u1At(2); // boundIndex; this.readOffset += 3; break; this.info = u1At(1); // methodFormalParameterIndex this.readOffset += 2; break; this.info = u2At(1); // throwsTypeIndex this.readOffset += 3; break; int typePathLength = u1At(this.readOffset); this.readOffset ++;
TypeAnnotationInfo[] decodeTypeAnnotations(int offset, boolean runtimeVisible) { int numberOfAnnotations = u2At(offset + 6); if (numberOfAnnotations > 0) { int readOffset = offset + 8; TypeAnnotationInfo[] typeAnnos = new TypeAnnotationInfo[numberOfAnnotations]; for (int i = 0; i < numberOfAnnotations; i++) { TypeAnnotationInfo newInfo = new TypeAnnotationInfo(this.reference, this.constantPoolOffsets, readOffset + this.structOffset, runtimeVisible, false); readOffset += newInfo.readOffset; typeAnnos[i] = newInfo; } return typeAnnos; } return null; }
@Override protected void initialize() { for (int i = 0, max = this.typeAnnotations.length; i < max; i++) this.typeAnnotations[i].initialize(); super.initialize(); } @Override
@Override protected void reset() { for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { this.typeAnnotations[i].reset(); } super.reset(); } }
protected void toStringContent(StringBuffer buffer) { super.toStringContent(buffer); buffer.append("type annotations = \n");//$NON-NLS-1$ for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { buffer.append(this.typeAnnotations[i].toString()); buffer.append('\n'); } } }
TypeAnnotationInfo(byte[] classFileBytes, int[] contantPoolOffsets, int offset, boolean runtimeVisible, boolean populate) { this(classFileBytes, contantPoolOffsets, offset); this.readOffset = 0; this.targetType = u1At(0); switch (this.targetType) { case AnnotationTargetTypeConstants.CLASS_TYPE_PARAMETER: case AnnotationTargetTypeConstants.METHOD_TYPE_PARAMETER: this.info = u1At(1); // typeParameterIndex this.readOffset += 2; break; this.info = u2At(1); // supertypeIndex this.readOffset += 3; break; this.info = u1At(1); // typeParameterIndex this.info2 = u1At(2); // boundIndex; this.readOffset += 3; break; this.info = u1At(1); // methodFormalParameterIndex this.readOffset += 2; break; this.info = u2At(1); // throwsTypeIndex this.readOffset += 3; break; int typePathLength = u1At(this.readOffset); this.readOffset ++;
TypeAnnotationInfo[] decodeTypeAnnotations(int offset, boolean runtimeVisible) { int numberOfAnnotations = u2At(offset + 6); if (numberOfAnnotations > 0) { int readOffset = offset + 8; TypeAnnotationInfo[] typeAnnos = new TypeAnnotationInfo[numberOfAnnotations]; for (int i = 0; i < numberOfAnnotations; i++) { TypeAnnotationInfo newInfo = new TypeAnnotationInfo(this.reference, this.constantPoolOffsets, readOffset + this.structOffset, runtimeVisible, false); readOffset += newInfo.readOffset; typeAnnos[i] = newInfo; } return typeAnnos; } return null; }
@Override protected void initialize() { for (int i = 0, l = this.typeAnnotations == null ? 0 : this.typeAnnotations.length; i < l; i++) { this.typeAnnotations[i].initialize(); } super.initialize(); } @Override