
jas.ClassElemValPair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasmin Show documentation
Show all versions of jasmin Show documentation
Java Assembler Interface for the Soot framework
/**
* ElemValPairs are embedded into class files
* and used for further ???
* @author $Author: Jennifer Lhotak$
* @version $Revision: 1.1 $
*/
package jas;
import java.io.*;
import java.util.*;
public class ClassElemValPair extends ElemValPair {
AsciiCP cval;
void resolve(ClassEnv e){
super.resolve(e);
e.addCPItem(cval);
}
/**
* Note: An annotation attr is associated with a class,
* method or field so you need to create a new VisibilityAnnotationAttr for
*/
public ClassElemValPair(String name, char kind, String cval) { //
super(name, kind);
this.cval = new AsciiCP(cval);
}
int size(){
return super.size() + 2;
}
void write(ClassEnv e, DataOutputStream out)
throws IOException, jasError
{
super.write(e, out);
out.writeShort(e.getCPIndex(cval));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy