本文整理汇总了Java中com.sun.java.util.jar.pack.ConstantPool.SignatureEntry类的典型用法代码示例。如果您正苦于以下问题:Java SignatureEntry类的具体用法?Java SignatureEntry怎么用?Java SignatureEntry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SignatureEntry类属于com.sun.java.util.jar.pack.ConstantPool包,在下文中一共展示了SignatureEntry类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readSignatureRef
import com.sun.java.util.jar.pack.ConstantPool.SignatureEntry; //导入依赖的package包/类
private SignatureEntry readSignatureRef() throws IOException {
// The class file stores a Utf8, but we want a Signature.
Entry e = readRef(CONSTANT_Signature);
return (e != null && e.getTag() == CONSTANT_Utf8)
? ConstantPool.getSignatureEntry(e.stringValue())
: (SignatureEntry) e;
}
示例2: readMember
import com.sun.java.util.jar.pack.ConstantPool.SignatureEntry; //导入依赖的package包/类
void readMember(boolean doMethod) throws IOException {
int mflags = readUnsignedShort();
Utf8Entry mname = readUtf8Ref();
SignatureEntry mtype = readSignatureRef();
DescriptorEntry descr = ConstantPool.getDescriptorEntry(mname, mtype);
Class.Member m;
if (!doMethod)
m = cls.new Field(mflags, descr);
else
m = cls.new Method(mflags, descr);
readAttributes(!doMethod ? ATTR_CONTEXT_FIELD : ATTR_CONTEXT_METHOD,
m);
}
示例3: writeSignatureBands
import com.sun.java.util.jar.pack.ConstantPool.SignatureEntry; //导入依赖的package包/类
void writeSignatureBands(Entry[] cpMap) throws IOException {
for (int i = 0; i < cpMap.length; i++) {
SignatureEntry e = (SignatureEntry) cpMap[i];
cp_Signature_form.putRef(e.formRef);
for (int j = 0; j < e.classRefs.length; j++) {
cp_Signature_classes.putRef(e.classRefs[j]);
}
}
}
示例4: getSignatureEntries
import com.sun.java.util.jar.pack.ConstantPool.SignatureEntry; //导入依赖的package包/类
Map<String, SignatureEntry> getSignatureEntries() {
return signatureEntries;
}
示例5: readSignatureRef
import com.sun.java.util.jar.pack.ConstantPool.SignatureEntry; //导入依赖的package包/类
private SignatureEntry readSignatureRef() throws IOException {
// The class file stores a Utf8, but we want a Signature.
Entry e = readRef(CONSTANT_Utf8);
return ConstantPool.getSignatureEntry(e.stringValue());
}
示例6: getSignatureEntries
import com.sun.java.util.jar.pack.ConstantPool.SignatureEntry; //导入依赖的package包/类
static Map<String, SignatureEntry> getSignatureEntries() {
return getTLGlobals().getSignatureEntries();
}