|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.tools.shell.ReflectionCompletor
class ReflectionCompletor
Implements the Completor interface to provide competions for GroovyShell by using reflection on global variables.
| Constructor Summary | |
ReflectionCompletor(Shell shell)
|
|
| Method Summary | |
|---|---|
int
|
complete(java.lang.String buffer, int cursor, java.util.List candidates)
|
int
|
findIdentifierStart(java.lang.String buffer, int endingAt)
Parse a buffer to determine the start index of the groovy identifier |
java.util.List
|
findMatchingVariables(java.lang.String prefix)
Build a list of variables defined in the shell that match a given prefix. |
java.util.List
|
getPublicFieldsAndMethods(java.lang.Object instance, java.lang.String prefix)
Build a list of public fields and methods for an object that match a given prefix. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Constructor Detail |
|---|
ReflectionCompletor(Shell shell)
| Method Detail |
|---|
int complete(java.lang.String buffer, int cursor, java.util.List candidates)
int findIdentifierStart(java.lang.String buffer, int endingAt)
buffer - the buffer to parseendingAt - the end index with the buffer
java.util.List findMatchingVariables(java.lang.String prefix)
prefix - the prefix to match
java.util.List getPublicFieldsAndMethods(java.lang.Object instance, java.lang.String prefix)
instance - the objectprefix - the prefix that must be matched
Groovy Documentation