All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finos.legend.pure.generated.PureCompiledLambda Maven / Gradle / Ivy

There is a newer version: 4.67.8
Show newest version
package org.finos.legend.pure.generated;
import org.eclipse.collections.api.LazyIterable;
import org.eclipse.collections.api.block.function.Function0;
import org.eclipse.collections.api.block.function.Function;
import org.eclipse.collections.api.block.function.Function2;
import org.eclipse.collections.api.block.predicate.Predicate;
import org.eclipse.collections.api.block.procedure.Procedure;
import org.eclipse.collections.api.map.ImmutableMap;
import org.eclipse.collections.api.map.MutableMap;
import org.eclipse.collections.api.map.MutableMapIterable;
import org.eclipse.collections.api.map.MapIterable;
import org.eclipse.collections.api.map.primitive.IntObjectMap;
import org.eclipse.collections.api.set.MutableSet;
import org.eclipse.collections.api.set.SetIterable;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.list.ListIterable;
import org.eclipse.collections.api.RichIterable;
import org.eclipse.collections.api.tuple.Pair;
import org.eclipse.collections.impl.factory.Lists;
import org.eclipse.collections.impl.factory.Maps;
import org.eclipse.collections.impl.map.mutable.UnifiedMap;
import org.eclipse.collections.impl.map.strategy.mutable.UnifiedMapWithHashingStrategy;
import org.eclipse.collections.impl.set.mutable.UnifiedSet;
import org.eclipse.collections.impl.set.strategy.mutable.UnifiedSetWithHashingStrategy;
import org.eclipse.collections.impl.list.mutable.FastList;
import org.eclipse.collections.impl.factory.Sets;
import org.eclipse.collections.impl.block.function.checked.CheckedFunction0;
import org.eclipse.collections.impl.utility.Iterate;
import org.eclipse.collections.impl.utility.LazyIterate;
import org.eclipse.collections.impl.utility.StringIterate;
import org.finos.legend.pure.m3.navigation.generictype.GenericType;
import org.finos.legend.pure.m3.navigation.ProcessorSupport;
import org.finos.legend.pure.m3.execution.ExecutionSupport;
import org.finos.legend.pure.m3.exception.PureExecutionException;
import org.finos.legend.pure.m4.coreinstance.CoreInstance;
import org.finos.legend.pure.m4.coreinstance.primitive.date.PureDate;
import org.finos.legend.pure.m4.coreinstance.primitive.date.DateFunctions;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.coreinstance.*;
import org.finos.legend.pure.runtime.java.compiled.metadata.*;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.*;
import org.finos.legend.pure.m3.serialization.filesystem.usercodestorage.vcs.ChangeType;
import org.finos.legend.pure.m3.serialization.filesystem.usercodestorage.vcs.ChangedPath;
import org.finos.legend.pure.m3.serialization.filesystem.usercodestorage.vcs.Revision;
import org.finos.legend.pure.m3.navigation.PackageableElement.PackageableElement;
import org.finos.legend.pure.m3.tools.ListHelper;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.*;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.defended.*;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.*;
import org.finos.legend.pure.runtime.java.compiled.execution.*;
import org.finos.legend.pure.runtime.java.compiled.execution.sourceInformation.*;
import org.finos.legend.pure.runtime.java.compiled.serialization.model.*;
import org.finos.legend.pure.runtime.java.compiled.metadata.*;
import java.lang.reflect.Method;
import java.math.BigInteger;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSetMetaData;
import java.util.Iterator;
import java.util.Calendar;
import java.util.Map;
import java.util.ArrayDeque;
import java.util.Deque;
import org.json.simple.JSONObject;
import org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.relationship.Generalization;
import org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Type;

import org.finos.legend.pure.generated.*;
import org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.function.*;
import org.finos.legend.pure.m4.coreinstance.AbstractCoreInstance;
public class PureCompiledLambda extends ReflectiveCoreInstance implements LambdaFunction, org.finos.legend.pure.runtime.java.compiled.generation.processors.support.LambdaCompiledExtended
{
     LambdaFunction lambdaFunction;
     public SharedPureFunction pureFunction;

    public PureCompiledLambda()
    {
        super("Anonymous_Lambda");
    }

    public PureCompiledLambda(String id)
    {
        super(id);
    }

    public PureCompiledLambda(LambdaFunction lambdaFunction, SharedPureFunction pureFunction)
    {
        this();
        this.lambdaFunction = (LambdaFunction)lambdaFunction;
        this.pureFunction = pureFunction;
    }
    public SharedPureFunction pureFunction()    {       return this.pureFunction;    }
    public String __id(){return this.lambdaFunction == null ? "Anonymous_Lambda" : this.lambdaFunction.getName();}
    public PureCompiledLambda copy()
    {
        return new PureCompiledLambda(
                   (LambdaFunction)((AbstractCoreInstance)this.lambdaFunction).copy(),
                   this.pureFunction
                   );
    }

    public static SharedPureFunction getPureFunction(final org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.function.Function function, ExecutionSupport es)
    {
        if (function == null)
        {
            return null;
        }
        else
        {
            return CoreGen.getSharedPureFunction(function, es);
        }    }


    public void _reverse_elementOverride(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride val)
    {
        throw new RuntimeException("Not Supported !");    }

    public void _sever_reverse_elementOverride(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride val)
    {
        throw new RuntimeException("Not Supported!");    }

    public LambdaFunction _elementOverride(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride val)
    {
        this.lambdaFunction._elementOverride(val);        return this.lambdaFunction;
    }

    public LambdaFunction _elementOverrideRemove()
    {
        this.lambdaFunction._elementOverrideRemove();
        return this.lambdaFunction;
    }

    public org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride _elementOverride()
    {
        return this.lambdaFunction._elementOverride();
    }


    public LambdaFunction _openVariables(RichIterable val)
    {
        this.lambdaFunction._openVariables(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _openVariablesAdd(java.lang.String val)
    {
        this.lambdaFunction._openVariablesAdd(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _openVariablesAddAll(RichIterable val)
    {
        this.lambdaFunction._openVariablesAddAll(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _openVariablesRemove(java.lang.String val)
    {
        this.lambdaFunction._openVariablesRemove(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _openVariablesRemove()
    {
        this.lambdaFunction._openVariablesRemove();
        return this.lambdaFunction;
    }
    public RichIterable _openVariables()
    {
        return this.lambdaFunction._openVariables();
    }
    public LambdaFunction _openVariablesCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _openVariablesRemoveCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _openVariablesAddAllCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _openVariablesAddCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }



    public void _reverse_expressionSequence(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.ValueSpecification val)
    {
        throw new RuntimeException("Not Supported in Lazy Mode!");    }

    public void _sever_reverse_expressionSequence(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.ValueSpecification val)
    {
        throw new RuntimeException("Not Supported in Lazy Mode!");    }

    public LambdaFunction _expressionSequence(RichIterable val)
    {
        this.lambdaFunction._expressionSequence(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _expressionSequenceAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.ValueSpecification val)
    {
        this.lambdaFunction._expressionSequenceAdd(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _expressionSequenceAddAll(RichIterable val)
    {
        this.lambdaFunction._expressionSequenceAddAll(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _expressionSequenceRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.ValueSpecification val)
    {
        this.lambdaFunction._expressionSequenceRemove(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _expressionSequenceRemove()
    {
        this.lambdaFunction._expressionSequenceRemove();
        return this.lambdaFunction;
    }
    public RichIterable _expressionSequence()
    {
        return this.lambdaFunction._expressionSequence();
    }
    public LambdaFunction _expressionSequenceCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _expressionSequenceRemoveCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _expressionSequenceAddAllCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _expressionSequenceAddCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }



    public LambdaFunction _name(java.lang.String val)
    {
        this.lambdaFunction._name(val);        return this.lambdaFunction;
    }

    public LambdaFunction _nameRemove()
    {
        this.lambdaFunction._nameRemove();
        return this.lambdaFunction;
    }

    public java.lang.String _name()
    {
        return this.lambdaFunction._name();
    }


    public void _reverse_applications(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.FunctionExpression val)
    {
        throw new RuntimeException("Not Supported in Lazy Mode!");    }

    public void _sever_reverse_applications(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.FunctionExpression val)
    {
        throw new RuntimeException("Not Supported in Lazy Mode!");    }

    public LambdaFunction _applications(RichIterable val)
    {
        this.lambdaFunction._applications(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _applicationsAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.FunctionExpression val)
    {
        this.lambdaFunction._applicationsAdd(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _applicationsAddAll(RichIterable val)
    {
        this.lambdaFunction._applicationsAddAll(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _applicationsRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.FunctionExpression val)
    {
        this.lambdaFunction._applicationsRemove(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _applicationsRemove()
    {
        this.lambdaFunction._applicationsRemove();
        return this.lambdaFunction;
    }
    public RichIterable _applications()
    {
        return this.lambdaFunction._applications();
    }
    public LambdaFunction _applicationsCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _applicationsRemoveCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _applicationsAddAllCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _applicationsAddCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }



    public LambdaFunction _functionName(java.lang.String val)
    {
        this.lambdaFunction._functionName(val);        return this.lambdaFunction;
    }

    public LambdaFunction _functionNameRemove()
    {
        this.lambdaFunction._functionNameRemove();
        return this.lambdaFunction;
    }

    public java.lang.String _functionName()
    {
        return this.lambdaFunction._functionName();
    }


    public void _reverse_referenceUsages(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val)
    {
        throw new RuntimeException("Not Supported in Lazy Mode!");    }

    public void _sever_reverse_referenceUsages(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val)
    {
        throw new RuntimeException("Not Supported in Lazy Mode!");    }

    public LambdaFunction _referenceUsages(RichIterable val)
    {
        this.lambdaFunction._referenceUsages(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _referenceUsagesAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val)
    {
        this.lambdaFunction._referenceUsagesAdd(val);
        return this.lambdaFunction;
    }

    public LambdaFunction _referenceUsagesAddAll(RichIterable val)
    {
        this.lambdaFunction._referenceUsagesAddAll(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _referenceUsagesRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val)
    {
        this.lambdaFunction._referenceUsagesRemove(val);
        return this.lambdaFunction;
    }
    public LambdaFunction _referenceUsagesRemove()
    {
        this.lambdaFunction._referenceUsagesRemove();
        return this.lambdaFunction;
    }
    public RichIterable _referenceUsages()
    {
        return this.lambdaFunction._referenceUsages();
    }
    public LambdaFunction _referenceUsagesCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _referenceUsagesRemoveCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _referenceUsagesAddAllCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public LambdaFunction _referenceUsagesAddCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }



    public void _reverse_classifierGenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType val)
    {
        throw new RuntimeException("Not Supported !");    }

    public void _sever_reverse_classifierGenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType val)
    {
        throw new RuntimeException("Not Supported!");    }

    public LambdaFunction _classifierGenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType val)
    {
        this.lambdaFunction._classifierGenericType(val);        return this.lambdaFunction;
    }

    public LambdaFunction _classifierGenericTypeRemove()
    {
        this.lambdaFunction._classifierGenericTypeRemove();
        return this.lambdaFunction;
    }

    public org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType _classifierGenericType()
    {
        return this.lambdaFunction._classifierGenericType();
    }


    public String getFullSystemPath()
    {
        return "Root::meta::pure::metamodel::function::LambdaFunction";
    }
}