public class GrammarRefactorMenu extends Object implements ActionRefactor
| Modifier and Type | Class and Description |
|---|---|
class |
GrammarRefactorMenu.EditorTextMutator |
protected class |
GrammarRefactorMenu.UndoableRefactoringEdit |
| Constructor and Description |
|---|
GrammarRefactorMenu(GrammarWindow window) |
public GrammarRefactorMenu(GrammarWindow window)
public void rename()
rename in interface ActionRefactorpublic boolean canReplaceLiteralWithTokenLabel()
canReplaceLiteralWithTokenLabel in interface ActionRefactorpublic void replaceLiteralWithTokenLabel()
replaceLiteralWithTokenLabel in interface ActionRefactorpublic void replaceLiteralTokenWithTokenLabel(ATEToken t, String name)
replaceLiteralTokenWithTokenLabel in interface ActionRefactorpublic void convertLiteralsToSingleQuote()
convertLiteralsToSingleQuote in interface ActionRefactorpublic void convertLiteralsToDoubleQuote()
convertLiteralsToDoubleQuote in interface ActionRefactorpublic void convertLiteralsToCStyleQuote()
convertLiteralsToCStyleQuote in interface ActionRefactorprotected void convertLiteralsToSpecifiedQuote(int tokenType,
char quote,
char unescapeQuote)
protected String escapeStringQuote(String s, char escapeQuote, char unescapeQuote)
public void removeLeftRecursion()
removeLeftRecursion in interface ActionRefactorpublic void removeAllLeftRecursion()
removeAllLeftRecursion in interface ActionRefactorpublic boolean canExtractRule()
canExtractRule in interface ActionRefactorpublic void extractRule()
extractRule in interface ActionRefactorpublic boolean canInlineRule()
canInlineRule in interface ActionRefactorpublic void inlineRule()
inlineRule in interface ActionRefactorprotected void inlineRule(ElementRule rule)
public void createRuleAtIndex(boolean lexer,
String name,
String content)
createRuleAtIndex in interface ActionRefactorpublic void deleteRuleAtIndex(int index)
deleteRuleAtIndex in interface ActionRefactorpublic int insertionIndexForRule(boolean lexer)
insertionIndexForRule in interface ActionRefactorpublic String createRule(String name, String content)
createRule in interface ActionRefactorprotected void insertRuleAtIndex(String rule, int index)
protected void beginRefactor(String name)
protected void endRefactor()
protected void refactorReplaceEditorText(String text)
Copyright © 2013. All rights reserved.