gw.lang.parser.StandardScope Maven / Gradle / Ivy
/*
* 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;
}
}