|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.swing.CompletionEngine | +--org.objectweb.jac.aspects.gui.swing.DefaultCompletionEngine | +--org.objectweb.jac.ide.swing.AccCompletionEngine
This class implements a completion engine for method acc configuration code of the UMLAF IDE.
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.swing.CompletionEngine |
BACKWARD, baseWords, FORWARD |
Constructor Summary | |
AccCompletionEngine(ToolParserWrapper parser,
Project project)
Creates a new AccCompletionEngine using a given parser. |
Method Summary | |
protected void |
completeAttributeName(String start,
Class cl,
List result)
|
protected List |
completeBlockParam(Terminal term)
Gets completion for a block parameter |
protected void |
completeClassName(String start,
List result)
|
protected List |
completeConfMethodParam()
|
protected void |
completeMethodName(String start,
Class cl,
List result)
|
protected String |
getClassName(NonTerminal block)
Gets the className for a member,method or attribute block |
List |
getContextualChoices(String text,
int position,
String writtenText)
In the default completion engine, this method only returns base words (i.e. non-contextual words). |
SyntaxElement |
getCurrentSyntaxElement()
|
protected String |
getMemberName(NonTerminal block)
|
void |
setAspectInstance(AspectComponent instance)
Sets the aspect instance associated with the completion engine |
Methods inherited from class org.objectweb.jac.aspects.gui.swing.DefaultCompletionEngine |
isAutomaticCompletionChar, runAutomaticCompletion |
Methods inherited from class org.objectweb.jac.aspects.gui.swing.CompletionEngine |
addBaseWord, addBaseWords, clearBaseWords, getBaseWords, getProposal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccCompletionEngine(ToolParserWrapper parser, Project project)
parser
- the parser to useMethod Detail |
public SyntaxElement getCurrentSyntaxElement()
public void setAspectInstance(AspectComponent instance)
instance
- the AspectComponent instancepublic List getContextualChoices(String text, int position, String writtenText)
DefaultCompletionEngine
getContextualChoices
in class DefaultCompletionEngine
text
- the editor's full textposition
- the cursor positionwrittenText
- the already written textprotected List completeConfMethodParam()
protected List completeBlockParam(Terminal term)
term
- the Terminal syntax element to completeprotected String getClassName(NonTerminal block)
block
- Non terminal of the block keyword
protected String getMemberName(NonTerminal block)
protected void completeAttributeName(String start, Class cl, List result)
protected void completeMethodName(String start, Class cl, List result)
protected void completeClassName(String start, List result)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |