com.softicar.platform.common.io.classfile.constants.ClassFileConstantNameAndType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.io.classfile.constants;
import com.softicar.platform.common.io.classfile.ClassFileReader;
import com.softicar.platform.common.io.classfile.constant.ClassFileConstantType;
public class ClassFileConstantNameAndType extends ClassFileConstant {
private final int nameIndex;
private final int descriptorIndex;
public ClassFileConstantNameAndType(ClassFileReader reader) {
super(ClassFileConstantType.NAME_AND_TYPE);
this.nameIndex = reader.readInt16();
this.descriptorIndex = reader.readInt16();
}
public int getNameIndex() {
return nameIndex;
}
public int getDescriptorIndex() {
return descriptorIndex;
}
}