public class Environment extends Object
In addition to that it offers the private output, report and source fields to use as PrintWriters and BufferedReaders.
| Constructor and Description |
|---|
Environment(String[] args)
Construct an environment with the given arguments
|
Environment(String title,
String[] args)
Construct an environment with the given arguments
|
public BufferedReader source
public FormattingPrintStream output
public FormattingPrintStream include
public FormattingPrintStream report
public FormattingPrintStream bundle
public BufferedReader skeleton
public BufferedReader reportTemplate
public AlgorithmicSupport algorithm
public LanguageSupport language
public HtmlWriter reportWriter
public Map<String,FormattingPrintStream> lexerModes
public Environment(String[] args)
args - command line argumentspublic void release()
public String getTitle()
public void error(int line,
String msg,
Object... args)
line - is the source file line numbermsg - is the message for printfargs - are the additional entries in the messagepublic String getRelatedTitle()
public String[] getArgs()
public CommandLine getCmd()
public boolean isTokenizerMode()
public Language getLanguageEnum()
public boolean isVerbose()
public boolean isDebug()
public Algorithm getAlgorithmType()
public Driver getDriver()
public boolean isEmitLine()
public int getMargin()
public int getIndent()
public boolean isPacked()
public boolean isExternalInclude()
public File getSourceFile()
public File getOutputFile()
public File getIncludeFile()
public File getReportFile()
public File getBundleFile()
public File getSkeletonFile()
public String getBundleName()
public Locale getLocale()
public RuntimeData getRuntimeData()
public FormattingPrintStream getLexerModePrintStream(String lexerMode)
lexerMode - is the mode to usepublic Map<String,FormattingPrintStream> getLexerModes()
public String toString()
toString in class ObjectObject.toString()public static void setCurrentEnvironment(Environment environment)
environment - is the syntax environment.public static Environment getCurrentEnvironment()
Copyright © 2017. All rights reserved.