jas.LongElemValPair Maven / Gradle / Ivy
/**
* 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 LongElemValPair extends ElemValPair{
LongCP val;
void resolve(ClassEnv e){
super.resolve(e);
e.addCPItem(val);
}
/**
* Note: An annotation attr is associated with a class,
* method or field so you need to create a new VisibilityAnnotationAttr for
*/
public LongElemValPair(String name, char kind, long val) { //
super(name, kind);
this.val = new LongCP(val);
}
int size(){
return super.size() + 2;
}
void write(ClassEnv e, DataOutputStream out)
throws IOException, jasError
{
super.write(e, out);
out.writeShort(e.getCPIndex(val));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy