96 lines
2.8 KiB
Java
96 lines
2.8 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* javax.baja.sys.Property
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
*/
|
|
package com.tridium.program;
|
|
|
|
import com.tridium.program.BCode;
|
|
import com.tridium.program.BProgram;
|
|
import com.tridium.program.ProgramBase;
|
|
import javax.baja.sys.Property;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BProgramCode
|
|
extends BCode {
|
|
public static final Property className = BProgramCode.newProperty((int)BCode.className.getDefaultFlags(), (String)"ProgramImpl");
|
|
public static final Property checksum = BProgramCode.newProperty((int)1, (int)0, null);
|
|
public static final Property source = BProgramCode.newProperty((int)1, (String)"", null);
|
|
public static final Property userDefinedImports = BProgramCode.newProperty((int)1, (String)"", null);
|
|
public static final Type TYPE;
|
|
static /* synthetic */ Class class$com$tridium$program$BProgramCode;
|
|
|
|
public int getChecksum() {
|
|
return this.getInt(checksum);
|
|
}
|
|
|
|
public void setChecksum(int n) {
|
|
this.setInt(checksum, n, null);
|
|
}
|
|
|
|
public String getSource() {
|
|
return this.getString(source);
|
|
}
|
|
|
|
public void setSource(String string) {
|
|
this.setString(source, string, null);
|
|
}
|
|
|
|
public String getUserDefinedImports() {
|
|
return this.getString(userDefinedImports);
|
|
}
|
|
|
|
public void setUserDefinedImports(String string) {
|
|
this.setString(userDefinedImports, string, null);
|
|
}
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public final BProgram getProgram() {
|
|
return (BProgram)this.getParent();
|
|
}
|
|
|
|
public ProgramBase newProgramInstance() {
|
|
if (this.getClassFile().length() > 0) {
|
|
try {
|
|
return (ProgramBase)this.newInstance();
|
|
}
|
|
catch (Throwable throwable) {
|
|
log.error("Cannot load program code: " + this.toPathString(), throwable);
|
|
}
|
|
}
|
|
return new ProgramBase();
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$program$BProgramCode;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$program$BProgramCode = BProgramCode.class("[Lcom.tridium.program.BProgramCode;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
}
|
|
}
|
|
|