public override string ToString(ReadOnlyCollection <ConstantPoolEntry> constantPool)
        {
            ConstantPoolEntry classEntry       = constantPool[ClassIndex - 1];
            ConstantPoolEntry nameAndTypeEntry = constantPool[NameAndTypeIndex - 1];

            return(classEntry.ToString(constantPool) + "." + nameAndTypeEntry.ToString(constantPool));
        }
        public override string ToString(ReadOnlyCollection <ConstantPoolEntry> constantPool)
        {
            ConstantPoolEntry nameEntry       = constantPool[NameIndex - 1];
            ConstantPoolEntry descriptorEntry = constantPool[DescriptorIndex - 1];

            return(nameEntry.ToString(constantPool) + " " + descriptorEntry.ToString(constantPool));
        }
Exemplo n.º 3
0
        public override string ToString(ReadOnlyCollection <ConstantPoolEntry> constantPool)
        {
            ConstantPoolEntry bootstrapMethodAttrEntry = constantPool[BootstrapMethodAttrIndex - 1];
            ConstantPoolEntry nameAndTypeEntry         = constantPool[NameAndTypeIndex - 1];

            return(bootstrapMethodAttrEntry.ToString(constantPool) + "." + nameAndTypeEntry.ToString(constantPool));
        }
        public override string ToString(ReadOnlyCollection <ConstantPoolEntry> constantPool)
        {
            ConstantPoolEntry referenceEntry = constantPool[ReferenceIndex - 1];

            return(ReferenceKind + " " + referenceEntry.ToString(constantPool));
        }
Exemplo n.º 5
0
        public override string ToString(ReadOnlyCollection <ConstantPoolEntry> constantPool)
        {
            ConstantPoolEntry descriptor = constantPool[DescriptorIndex - 1];

            return(descriptor.ToString(constantPool));
        }
Exemplo n.º 6
0
        public jvmtiError GetConstantPool(jclass classHandle, out ConstantPoolEntry[] entries)
        {
            entries = null;

            int constantPoolCount;
            int constantPoolByteCount;
            IntPtr constantPoolBytesPtr;
            jvmtiError error = RawInterface.GetConstantPool(this, classHandle, out constantPoolCount, out constantPoolByteCount, out constantPoolBytesPtr);
            if (error != jvmtiError.None)
                return error;

            try
            {
                List<ConstantPoolEntry> entryList = new List<ConstantPoolEntry>();
                IntPtr currentPosition = constantPoolBytesPtr;
                for (int i = 0; i < constantPoolCount; i++)
                {
                    entryList.Add(ConstantPoolEntry.FromMemory(ref currentPosition));
                }

                entries = entryList.ToArray();
                return jvmtiError.None;
            }
            finally
            {
                Deallocate(constantPoolBytesPtr);
            }
        }
Exemplo n.º 7
0
        public override string ToString(ReadOnlyCollection <ConstantPoolEntry> constantPool)
        {
            ConstantPoolEntry entry = constantPool[NameIndex - 1];

            return(entry.ToString(constantPool));
        }