public SourceAttribute readAttribute(final Buffer buffer) { final int nameIndex = buffer.readUnsignedShort(); final int length = buffer.readInt(); final IMetadataScope scope = getScope(); final String name = scope.lookupConstant(nameIndex); return readAttributeCore(name, buffer, -1, length); }
protected final SourceAttribute inflateAttribute(final SourceAttribute attribute) { return inflateAttribute(new Buffer(0), attribute); }
public void readAttributes(final Buffer input, final SourceAttribute[] attributes) { for (int i = 0; i < attributes.length; i++) { attributes[i] = readAttribute(input); } }
final IMetadataScope scope = getScope(); final SourceAttribute[] attributes = new SourceAttribute[attributeCount]; readAttributes(buffer, attributes); variableIndex, variableName, getParser().parseTypeSignature(descriptor), scopeOffset, scopeLength nameIndex != 0 ? getScope().<String>lookupConstant(nameIndex) : null, flags );
protected final SourceAttribute inflateAttribute(final Buffer buffer, final SourceAttribute attribute) { if (attribute instanceof BlobAttribute) { buffer.reset(attribute.getLength()); final BlobAttribute blobAttribute = (BlobAttribute) attribute; System.arraycopy( blobAttribute.getData(), 0, buffer.array(), 0, attribute.getLength() ); return readAttributeCore( attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength() ); } return attribute; }
final IMetadataScope scope = getScope(); final SourceAttribute[] attributes = new SourceAttribute[attributeCount]; readAttributes(buffer, attributes); variableIndex, variableName, getParser().parseTypeSignature(descriptor), scopeOffset, scopeLength nameIndex != 0 ? getScope().<String>lookupConstant(nameIndex) : null, flags );
protected final SourceAttribute inflateAttribute(final Buffer buffer, final SourceAttribute attribute) { if (attribute instanceof BlobAttribute) { buffer.reset(attribute.getLength()); final BlobAttribute blobAttribute = (BlobAttribute) attribute; System.arraycopy( blobAttribute.getData(), 0, buffer.array(), 0, attribute.getLength() ); return readAttributeCore( attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength() ); } return attribute; }
final IMetadataScope scope = getScope(); final SourceAttribute[] attributes = new SourceAttribute[attributeCount]; readAttributes(buffer, attributes); parsedType = getParser().parseTypeSignature(descriptor); nameIndex != 0 ? getScope().<String>lookupConstant(nameIndex) : null, flags );
public SourceAttribute readAttribute(final Buffer buffer) { final int nameIndex = buffer.readUnsignedShort(); final int length = buffer.readInt(); final IMetadataScope scope = getScope(); final String name = scope.lookupConstant(nameIndex); return readAttributeCore(name, buffer, -1, length); }
protected final SourceAttribute inflateAttribute(final Buffer buffer, final SourceAttribute attribute) { if (attribute instanceof BlobAttribute) { buffer.reset(attribute.getLength()); final BlobAttribute blobAttribute = (BlobAttribute) attribute; System.arraycopy( blobAttribute.getData(), 0, buffer.array(), 0, attribute.getLength() ); return readAttributeCore( attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength() ); } return attribute; }
protected final SourceAttribute inflateAttribute(final SourceAttribute attribute) { return inflateAttribute(new Buffer(0), attribute); }
public void readAttributes(final Buffer input, final SourceAttribute[] attributes) { for (int i = 0; i < attributes.length; i++) { attributes[i] = readAttribute(input); } }
public SourceAttribute readAttribute(final Buffer buffer) { final int nameIndex = buffer.readUnsignedShort(); final int length = buffer.readInt(); final IMetadataScope scope = getScope(); final String name = scope.lookupConstant(nameIndex); return readAttributeCore(name, buffer, -1, length); }
readAttributeCore( attribute.getName(), buffer,
protected final SourceAttribute inflateAttribute(final SourceAttribute attribute) { return inflateAttribute(new Buffer(0), attribute); }
public void readAttributes(final Buffer input, final SourceAttribute[] attributes) { for (int i = 0; i < attributes.length; i++) { attributes[i] = readAttribute(input); } }
readAttributeCore( attribute.getName(), buffer,
protected void inflateAttributes(final SourceAttribute[] attributes) { VerifyArgument.noNullElements(attributes, "attributes"); if (attributes.length == 0) { return; } Buffer buffer = null; for (int i = 0; i < attributes.length; i++) { final SourceAttribute attribute = attributes[i]; if (attribute instanceof BlobAttribute) { if (buffer == null) { buffer = new Buffer(attribute.getLength()); } attributes[i] = inflateAttribute(buffer, attribute); } } }
readAttributeCore( attribute.getName(), buffer,
protected void inflateAttributes(final SourceAttribute[] attributes) { VerifyArgument.noNullElements(attributes, "attributes"); if (attributes.length == 0) { return; } Buffer buffer = null; for (int i = 0; i < attributes.length; i++) { final SourceAttribute attribute = attributes[i]; if (attribute instanceof BlobAttribute) { if (buffer == null) { buffer = new Buffer(attribute.getLength()); } attributes[i] = inflateAttribute(buffer, attribute); } } }