public class STRefactorMenu extends Object implements ActionRefactor
| Modifier and Type | Class and Description |
|---|---|
class |
STRefactorMenu.EditorTextMutator |
protected class |
STRefactorMenu.UndoableRefactoringEdit |
| Constructor and Description |
|---|
STRefactorMenu(STWindow window) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginRefactor(String name) |
boolean |
canExtractRule() |
boolean |
canInlineRule() |
boolean |
canReplaceLiteralWithTokenLabel() |
void |
convertLiteralsToCStyleQuote() |
void |
convertLiteralsToDoubleQuote() |
void |
convertLiteralsToSingleQuote() |
String |
createRule(String name,
String content) |
void |
createRuleAtIndex(boolean lexer,
String name,
String content) |
void |
deleteRuleAtIndex(int index) |
protected void |
endRefactor() |
void |
extractRule() |
protected ElementTemplateRule |
getRuleAtPosition(int pos) |
void |
inlineRule() |
int |
insertionIndexForRule(boolean lexer) |
protected void |
refactorReplaceEditorText(String text) |
void |
removeAllLeftRecursion() |
void |
removeLeftRecursion() |
void |
rename() |
boolean |
renameToken(ATEToken t,
String name) |
void |
replaceLiteralTokenWithTokenLabel(ATEToken t,
String name) |
void |
replaceLiteralWithTokenLabel() |
public STRefactorMenu(STWindow window)
public void rename()
rename in interface ActionRefactorprotected ElementTemplateRule getRuleAtPosition(int pos)
protected void beginRefactor(String name)
protected void endRefactor()
public 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 ActionRefactorpublic 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 ActionRefactorpublic 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 refactorReplaceEditorText(String text)
Copyright © 2013. All rights reserved.