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

gw.lang.parser.ILanguageLevel Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */

package gw.lang.parser;

import gw.config.CommonServices;

public interface ILanguageLevel
{
  boolean isStandard();

  static class Util {
    private static Boolean g_standardGosu = null;
    public static void reset() {
      g_standardGosu = null;
    }

    public static boolean STANDARD_GOSU()
    {
      return g_standardGosu == null
             ? g_standardGosu = CommonServices.getEntityAccess().getLanguageLevel().isStandard()
             : g_standardGosu;
    }

    public static boolean DYNAMIC_TYPE()
    {
      return true;
//             g_dynamicType == null
//             ? g_dynamicType = STANDARD_GOSU() || System.getProperty( "gosu.dynamic", null ) != null
//             : g_standardGosu;
    }
  }


  //## todo: These all should be implied by the answer to isStandard() above... better, just stop supporting this crap

  boolean supportsNakedCatchStatements();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy