ASTOperandIdentifier class
Пакет: com.hypixel.hytale.server.npc.util.expression.compile.ast
Файл: com/hypixel/hytale/server/npc/util/expression/compile/ast/ASTOperandIdentifier.java
extends: ASTOperand
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
String |
identifier |
Методы (2)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
public |
String |
getIdentifierString getIdentifier() |
abstract |
|
super super(var1, var2, var3) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.npc.util.expression.compile.ast;
class="kw">import com.hypixel.hytale.server.npc.util.expression.ExecutionContext;
class="kw">import com.hypixel.hytale.server.npc.util.expression.ValueType;
class="kw">import com.hypixel.hytale.server.npc.util.expression.compile.Token;
class="kw">import javax.annotation.Nonnull;
class="kw">public class ASTOperandIdentifier class="kw">extends ASTOperand {
class="kw">private class="kw">final String identifier;
class="kw">public ASTOperandIdentifier(@Nonnull ValueType var1, @Nonnull Token var2, int var3, String var4) {
super(var1, var2, var3);
this.identifier = var4;
this.codeGen = var1x -> ExecutionContext.genREAD(this.identifier, this.getValueType(), var1x);
}
class="kw">public String getIdentifier() {
class="kw">return this.identifier;
}
@Override
class="kw">public boolean isConstant() {
class="kw">return false;
}
}