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

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

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

package gw.lang.parser;

import java.util.HashMap;

public class StandardScope  extends HashMap  implements IScope
{
  private IActivationContext _activationContext;
  private int _csr;


  public StandardScope()
  {
    super();
  }

  public StandardScope( IActivationContext context )
  {
    this();
    _activationContext = context;
  }

  public StandardScope( int iSize )
  {
    super( iSize );
  }

  public StandardScope( IActivationContext context, int iSize )
  {
    this( iSize );
    _activationContext = context;
  }

  protected StandardScope( StandardScope copy )
  {
    super( copy );
    _activationContext = copy._activationContext;
  }

  @Override
  public StandardScope copy()
  {
    return new StandardScope<>( this );
  }

  /**
   */
  public IActivationContext getActivationCtx()
  {
    return _activationContext;
  }

  public int countSymbols()
  {
    return values().size();
  }

  public int getCSR()
  {
    return _csr;
  }

  public void setCSR( int csr )
  {
    _csr = csr;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy