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

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

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

package gw.lang.parser;

public class StringSource implements ISource {
  private String _strSource;
  private ISourceCodeTokenizer _tokenizer;

  public StringSource( String strSource ) {
    _strSource = strSource;
  }

  public String getSource() {
    return _strSource;
  }

  @Override
  public void stopCachingSource() {
    // do nothing for now
  }

  @Override
  public ISourceCodeTokenizer getTokenizer() {
    return _tokenizer;
  }
  @Override
  public void setTokenizer( ISourceCodeTokenizer tokenizer ) {
    _tokenizer = tokenizer;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy