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