194 lines
4.2 KiB
Java
194 lines
4.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.collection;
|
|
|
|
import java.lang.reflect.Array;
|
|
import javax.baja.collection.BICollection;
|
|
import javax.baja.collection.BIList;
|
|
import javax.baja.collection.BITable;
|
|
import javax.baja.collection.Column;
|
|
import javax.baja.collection.ColumnList;
|
|
import javax.baja.sys.BFacets;
|
|
import javax.baja.sys.BObject;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Cursor;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.util.IFilter;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BEmptyTable
|
|
extends BObject
|
|
implements BITable {
|
|
private static final BObject[] EMPTY_ARRAY = new BObject[0];
|
|
private static final ColumnList NO_COLUMNS = new EmptyColumnList();
|
|
public static final Type TYPE;
|
|
static /* synthetic */ Class class$com$tridium$collection$BEmptyTable;
|
|
|
|
public Cursor cursor() {
|
|
return new EmptyCursor(null);
|
|
}
|
|
|
|
public BICollection filter(IFilter iFilter) {
|
|
return this;
|
|
}
|
|
|
|
public BIList toList() {
|
|
return this;
|
|
}
|
|
|
|
public BObject get(int n) {
|
|
return null;
|
|
}
|
|
|
|
public int size() {
|
|
return 0;
|
|
}
|
|
|
|
public BObject[] list() {
|
|
return EMPTY_ARRAY;
|
|
}
|
|
|
|
public BObject[] list(BObject[] bObjectArray) {
|
|
if (bObjectArray == null) {
|
|
return EMPTY_ARRAY;
|
|
}
|
|
if (bObjectArray.length == 0) {
|
|
return bObjectArray;
|
|
}
|
|
return (BObject[])Array.newInstance(bObjectArray.getClass().getComponentType(), 0);
|
|
}
|
|
|
|
public BITable toTable() {
|
|
return this;
|
|
}
|
|
|
|
public ColumnList getColumns() {
|
|
return NO_COLUMNS;
|
|
}
|
|
|
|
public BObject get(int n, Column column) {
|
|
return null;
|
|
}
|
|
|
|
public String getString(int n, Column column) {
|
|
return null;
|
|
}
|
|
|
|
public float getFloat(int n, Column column) {
|
|
return 0.0f;
|
|
}
|
|
|
|
public double getDouble(int n, Column column) {
|
|
return 0.0;
|
|
}
|
|
|
|
public int getInt(int n, Column column) {
|
|
return 0;
|
|
}
|
|
|
|
public long getLong(int n, Column column) {
|
|
return 0L;
|
|
}
|
|
|
|
public boolean getBoolean(int n, Column column) {
|
|
return false;
|
|
}
|
|
|
|
public int getFlags(int n, Column column) {
|
|
return 0;
|
|
}
|
|
|
|
public BFacets getFacets(int n, Column column) {
|
|
return BFacets.NULL;
|
|
}
|
|
|
|
public BFacets getTableFacets() {
|
|
return BFacets.NULL;
|
|
}
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
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$collection$BEmptyTable;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$collection$BEmptyTable = BEmptyTable.class("[Lcom.tridium.collection.BEmptyTable;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
|
|
private static class EmptyCursor
|
|
implements Cursor {
|
|
Context context;
|
|
|
|
public Context getContext() {
|
|
return this.context;
|
|
}
|
|
|
|
public boolean next() {
|
|
return false;
|
|
}
|
|
|
|
public boolean nextComponent() {
|
|
return false;
|
|
}
|
|
|
|
public boolean next(Class clazz) {
|
|
return false;
|
|
}
|
|
|
|
public BObject get() {
|
|
return null;
|
|
}
|
|
|
|
public EmptyCursor(Context context) {
|
|
this.context = context;
|
|
}
|
|
}
|
|
|
|
private static class EmptyColumnList
|
|
implements ColumnList {
|
|
public int size() {
|
|
return 0;
|
|
}
|
|
|
|
public Column get(int n) {
|
|
return null;
|
|
}
|
|
|
|
public Column get(String string) {
|
|
return null;
|
|
}
|
|
|
|
public int indexOf(String string) {
|
|
return -1;
|
|
}
|
|
|
|
public Column[] list() {
|
|
return new Column[0];
|
|
}
|
|
|
|
private EmptyColumnList() {
|
|
}
|
|
}
|
|
}
|
|
|