Class SwitchGenerator
- java.lang.Object
-
- org.mozilla.javascript.tools.idswitch.SwitchGenerator
-
public class SwitchGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SwitchGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateSwitch(java.lang.String[] pairs, java.lang.String default_value)
void
generateSwitch(IdValuePair[] pairs, java.lang.String default_value)
org.mozilla.javascript.tools.idswitch.CodePrinter
getCodePrinter()
ToolErrorReporter
getReporter()
java.lang.String
getSourceFileName()
void
setCodePrinter(org.mozilla.javascript.tools.idswitch.CodePrinter value)
void
setReporter(ToolErrorReporter value)
void
setSourceFileName(java.lang.String value)
-
-
-
Method Detail
-
getCodePrinter
public org.mozilla.javascript.tools.idswitch.CodePrinter getCodePrinter()
-
setCodePrinter
public void setCodePrinter(org.mozilla.javascript.tools.idswitch.CodePrinter value)
-
getReporter
public ToolErrorReporter getReporter()
-
setReporter
public void setReporter(ToolErrorReporter value)
-
getSourceFileName
public java.lang.String getSourceFileName()
-
setSourceFileName
public void setSourceFileName(java.lang.String value)
-
generateSwitch
public void generateSwitch(java.lang.String[] pairs, java.lang.String default_value)
-
generateSwitch
public void generateSwitch(IdValuePair[] pairs, java.lang.String default_value)
-
-