org.jace.parser.attribute.CodeAttributeReader Maven / Gradle / Ivy
package org.jace.parser.attribute;
import java.io.IOException;
import java.io.InputStream;
import org.jace.parser.ConstantPool;
/**
* Reads CodeAttributes.
*
* @author Toby Reyelts
*/
public class CodeAttributeReader implements AttributeReader
{
/**
* Reads a CodeAttribute from a class file InputStream.
*
* @return the CodeAttribute
* @throws IOException if an I/O error occurs while reading the attribute
*/
@Override
public Attribute readAttribute(InputStream input, int nameIndex, ConstantPool pool)
throws IOException
{
return new CodeAttribute(input, nameIndex, pool);
}
@Override
public String getName()
{
return "Code";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy