Package Rakudo.Runtime

Examples of Rakudo.Runtime.Context


    /// <param name="Name"></param>
    /// <returns></returns>
    public static ArrayList<RakudoCodeRef.Instance> FindCandidates(Context callerScope, Context protoScope, String candidateHolderName)
    {
        ArrayList<RakudoCodeRef.Instance> result = new ArrayList<RakudoCodeRef.Instance>();
        Context curScope = null;
        do
        {   // Get the next outer scope, or alternatively start off with the
            // caller scope.  (parenthesized for clarity).
            curScope = (curScope == null) ? callerScope : curScope.Outer;
            if (curScope == null)
View Full Code Here


        RegisterRepresentations();
        RakudoObject knowHOW = KnowHOWBootstrapper.Bootstrap();
        RakudoObject knowHOWAttribute = KnowHOWBootstrapper.SetupKnowHOWAttribute(knowHOW);

        // Either load a named setting or use the fake bootstrapping one.
        Context settingContext =
            // Comment out the next line to always use the fake Setting.
            (settingName != null) ? LoadSetting(settingName, knowHOW, knowHOWAttribute) :
                                    BootstrapSetting(knowHOW, knowHOWAttribute);

        // Cache native capture and LLCode type object.
View Full Code Here

    /// <param name="KnowHOW"></param>
    /// <returns></returns>
    private static Context BootstrapSetting(RakudoObject knowHOW, RakudoObject knowHOWAttribute)
    {
        // System.err.println( "calling new Context from Init" );
        Context settingContext = new Context();
        settingContext.LexPad = new Lexpad(new String[]
            { "KnowHOW", "KnowHOWAttribute", "capture", "NQPInt", "NQPNum", "NQPStr", "NQPList", "NQPCode", "list", "NQPArray", "NQPHash" });
        settingContext.LexPad.Storage = new RakudoObject[]
            {
                knowHOW,
View Full Code Here

        }

        assert methodLoadSetting != null : "methodLoadSetting is null";

        // Run it to get the context we want.
        Context settingContext = null;
        try {
            settingContext = (Context)methodLoadSetting.invoke( null, new Object[] { });
        }
        catch (IllegalAccessException ex) {
            System.err.println("Illegal access: " + ex.getMessage());
View Full Code Here

TOP

Related Classes of Rakudo.Runtime.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.