G-Earth/Extensions/G-Translator_1.0.2/decompiled/wasm/misc/Function.java
Administrator 368b92d87a G-Earth 1.5.4 beta 22 - Initial release
Komplettes G-Earth Paket inkl. JRE, Extensions und Tools.

Extensions:
- G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate
- G-Presets, G-Translator, G-Trigger, G-itemViewer
- Market Utils, Packet Info Explorer, Plants
- RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector
- SpyFriends, WallAligner, XabboScripter, xabbo
2026-03-16 09:45:04 +01:00

61 lines
1.4 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package wasm.misc;
import java.util.ArrayList;
import java.util.List;
import wasm.disassembly.instructions.Expression;
import wasm.disassembly.modules.sections.code.Locals;
import wasm.disassembly.types.FuncType;
import wasm.disassembly.types.ValType;
public class Function {
private FuncType funcType = null;
private List<Locals> locals = null;
private Expression code = null;
public Function(FuncType funcType, List<Locals> locals, Expression code) {
this.funcType = funcType;
this.locals = locals;
this.code = code;
}
public FuncType getFuncType() {
return this.funcType;
}
public void setFuncType(FuncType funcType) {
this.funcType = funcType;
}
public List<Locals> getLocals() {
return this.locals;
}
public List<ValType> getLocalsFloored() {
ArrayList<ValType> result = new ArrayList<ValType>();
for (Locals loc : this.locals) {
int i = 0;
while ((long)i < loc.getAmount()) {
result.add(loc.getValType());
++i;
}
}
return result;
}
public void setLocals(List<Locals> locals) {
this.locals = locals;
}
public Expression getCode() {
return this.code;
}
public void setCode(Expression code) {
this.code = code;
}
}