com.sun.java.util.jar.pack.ConstantPool.DescriptorEntry Java Examples
The following examples show how to use
com.sun.java.util.jar.pack.ConstantPool.DescriptorEntry.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClassReader.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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); }
Example #2
Source File: ClassReader.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #3
Source File: Package.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #4
Source File: ClassReader.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #5
Source File: ClassReader.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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); }
Example #6
Source File: ClassReader.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #7
Source File: ClassReader.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #8
Source File: Package.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #9
Source File: Package.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #10
Source File: Package.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #11
Source File: ClassReader.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #12
Source File: ClassReader.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
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); }
Example #13
Source File: ClassReader.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
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); }
Example #14
Source File: Package.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #15
Source File: Package.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #16
Source File: Package.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #17
Source File: Package.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #18
Source File: ClassReader.java From hottub with GNU General Public License v2.0 | 5 votes |
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); }
Example #19
Source File: ClassReader.java From hottub with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #20
Source File: Package.java From hottub with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #21
Source File: Package.java From hottub with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #22
Source File: ClassReader.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
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); }
Example #23
Source File: Package.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #24
Source File: Package.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #25
Source File: ClassReader.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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); }
Example #26
Source File: Package.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Method(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(descriptor.isMethod()); if (methods == null) methods = new ArrayList<>(); boolean added = methods.add(this); assert(added); }
Example #27
Source File: Package.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }
Example #28
Source File: ClassReader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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); }
Example #29
Source File: ClassReader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
Entry resolve() { Class cls = ClassReader.this.cls; Entry res; switch (tag) { case CONSTANT_InvokeDynamic: BootstrapMethodEntry iboots = cls.bootstrapMethods.get((Integer) refsOrIndexes[0]); DescriptorEntry idescr = (DescriptorEntry) refsOrIndexes[1]; res = ConstantPool.getInvokeDynamicEntry(iboots, idescr); break; default: throw new AssertionError(); } return res; }
Example #30
Source File: Package.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Field(int flags, DescriptorEntry descriptor) { super(flags, descriptor); assert(!descriptor.isMethod()); if (fields == null) fields = new ArrayList<>(); boolean added = fields.add(this); assert(added); order = fields.size(); }