mirror of https://github.com/aamine/cbc
29 lines
512 B
Java
29 lines
512 B
Java
package net.loveruby.cflat.ast;
|
|
import net.loveruby.cflat.asm.AsmEntity;
|
|
import net.loveruby.cflat.asm.Label;
|
|
|
|
public class ConstantEntry
|
|
{
|
|
protected long id;
|
|
protected String value;
|
|
protected Label label;
|
|
|
|
public ConstantEntry(long i, String val) {
|
|
id = i;
|
|
value = val;
|
|
label = new Label(".LC" + id);
|
|
}
|
|
|
|
public long id() {
|
|
return id;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public Label label() {
|
|
return label;
|
|
}
|
|
}
|