Helfer AbstractFactory

Jan Burse, erstellt 14. Jan 2019
package jekpro.tools.array;
import derek.util.protect.LicenseError;
import jekpro.model.builtin.AbstractBranch;
import jekpro.model.builtin.AbstractFlag;
import jekpro.model.inter.Engine;
import jekpro.model.molec.EngineException;
import jekpro.model.molec.EngineMessage;
import jekpro.model.pretty.AbstractSource;
import jekpro.model.pretty.Foyer;
import jekpro.model.pretty.Store;
import jekpro.tools.proxy.AbstractReflection;
import matula.comp.sharik.AbstractFramework;
import matula.util.data.MapHash;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Locale;
import java.util.Properties;
/**
* <p>This class provides an abstract factory.</p>
* <p/>
* Warranty & Liability
* To the extent permitted by applicable law and unless explicitly
* otherwise agreed upon, XLOG Technologies GmbH makes no warranties
* regarding the provided information. XLOG Technologies GmbH assumes
* no liability that any problems might be solved with the information
* provided by XLOG Technologies GmbH.
* <p/>
* Rights & License
* All industrial property rights regarding the information - copyright
* and patent rights in particular - are the sole property of XLOG
* Technologies GmbH. If the company was not the originator of some
* excerpts, XLOG Technologies GmbH has at least obtained the right to
* reproduce, change and translate the information.
* <p/>
* Reproduction is restricted to the whole unaltered document. Reproduction
* of the information is only allowed for non-commercial uses. Selling,
* giving away or letting of the execution of the library is prohibited.
* The library can be distributed as part of your applications and libraries
* for execution provided this comment remains unchanged.
* <p/>
* Restrictions
* Only to be distributed with programs that add significant and primary
* functionality to the library. Not to be distributed with additional
* software intended to replace any components of the library.
* <p/>
* Trademarks
* Jekejeke is a registered trademark of XLOG Technologies GmbH.
*/
public abstract class AbstractFactory extends AbstractFramework {
public static final String OP_DOMAIN_FOREIGN_VISIBILITY = "foreign_visibility";
public static final String OP_DOMAIN_FOREIGN_RECEIVER = "foreign_receiver";
public static final String OP_DOMAIN_FOREIGN_PARAMETER = "foreign_parameter";
public static final String OP_DOMAIN_FOREIGN_RETURN = "foreign_return";
public static final String OP_DOMAIN_FOREIGN_EXCEPTION = "foreign_exception";
public static final String OP_DOMAIN_FOREIGN_ACCESS = "foreign_access";
public static final String OP_DOMAIN_FOREIGN_ARRAY = "foreign_array";
public static final String OP_DOMAIN_FOREIGN_NOTYET = "foreign_notyet";
public static final String OP_PERMISSION_LOOKUP = "lookup";
public static final String OP_PERMISSION_APPLY = "apply";
public static final String OP_PERMISSION_METHOD = "method";
public static final String OP_PERMISSION_CONSTRUCTOR = "constructor";
public static final String OP_PERMISSION_FIELD = "field";
public static final String OP_PERMISSION_INDEX = "index";
public static final String OP_REPRESENTATION_NULL = "null";
public static final int FIELD_GET_PRED = 0;
public static final int FIELD_GET_EVAL = 1;
public static final int FIELD_SET = 2;
public static final int ARRAY_LENGTH = 0;
public static final int ARRAY_GET_EVAL = 1;
public static final int ARRAY_NEW = 2;
public static final int ARRAY_GET_PRED = 3;
public static final int ARRAY_SET = 4;
public Object proxy;
public Object toolinput;
public Object tooloutput;
public Object toolerror;
private MapHash<String, AbstractFlag> prologflags;
private MapHash<String, AbstractFlag> threadflags;
private AbstractReflection reflection;
/**
* <p>Retrieve the reflection.</p>
*
* @return The reflection.
*/
public AbstractReflection getReflection() {
return reflection;
}
/**
* <p>Set the reflection.</p>
*
* @param r The reflection.
*/
public void setReflection(AbstractReflection r) {
reflection = r;
}
/****************************************************************/
/* Prolog Flags */
/****************************************************************/
/**
* <p>Retrieve the prolog flags.</p>
*
* @return The prolog flags.
*/
public final MapHash<String, AbstractFlag> getPrologFlags() {
return prologflags;
}
/**
* <p>Set the prolog flags.</p>
*
* @param f The prolog flags.
*/
public final void setPrologFlags(MapHash<String, AbstractFlag> f) {
prologflags = f;
}
/****************************************************************/
/* Thread Flags */
/****************************************************************/
/**
* <p>Retrieve the thread flags.</p>
*
* @return The thread flags.
*/
public final MapHash<String, AbstractFlag> getThreadFlags() {
return threadflags;
}
/**
* <p>Set the thread flags.</p>
*
* @param f The thread flags.
*/
public final void setThreadFlags(MapHash<String, AbstractFlag> f) {
threadflags = f;
}
/*******************************************************************/
/* Life Cycle */
/*******************************************************************/
/**
* <p>Create a fioyer.</p>
*
* @return The foyer.
*/
public abstract Foyer createFoyer();
/**
* <p>Retrieve the init branches.</p>
*
* @return The branches.
*/
public abstract AbstractBranch[] getInitBranches();
/**
* <p>Retrieve the brand branch.</p>
*
* @return The branch.
*/
public abstract AbstractBranch getBrandBranch();
}

Kommentare