org.jace.parser.attribute.CodeAttributeReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jace-core-java Show documentation
Show all versions of jace-core-java Show documentation
Jace core module, Java source-code
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 - 2024 Weber Informatics LLC | Privacy Policy