package com.github.orajavac.coding2017.jvm.constant;
public class UTF8Info extends ConstantInfo{
private int type = ConstantInfo.UTF8_INFO;
private int length ;
private String value;
public UTF8Info(ConstantPool pool) {
super(pool);
}
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
public int getType() {
return type;
}
@Override
public String toString() {
return "UTF8Info [type=" + type + ", length=" + length + ", value=" + value +")]";
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public void accept(Visistor visitor) {
visitor.visitUTF8(this);
}
}