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

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

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

package gw.lang.parser;

/**
 */
public enum MemberAccessKind
{
  NORMAL,
  NULL_SAFE,
  EXPANSION,;

  public static MemberAccessKind getForOperator( String strOperator )
  {
    if( strOperator == null )
    {
      return NORMAL;
    }
    if( strOperator.equals( "?." ) )
    {
      return NULL_SAFE;
    }
    if( strOperator.equals( "*.") )
    {
      return EXPANSION;
    }
    return NORMAL;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy