Package org.apache.groovy.groovysh.jline
Class GroovyEngine.AccessRules
java.lang.Object
org.apache.groovy.groovysh.jline.GroovyEngine.AccessRules
- Enclosing class:
- GroovyEngine
Encapsulates access rules for code completion.
Controls which members are visible during completion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanWhether to include all classes (including non-public) in completionprotected final booleanWhether to include all constructors (including non-public) in completionprotected final booleanWhether to include all fields (including non-public) in completionprotected final booleanWhether to include all methods (including non-public) in completion -
Constructor Summary
ConstructorsConstructorDescriptionConstructs AccessRules with default values (all false).AccessRules(Map<String, Object> options) Constructs AccessRules from the given options map. -
Method Summary
-
Field Details
-
allMethods
protected final boolean allMethodsWhether to include all methods (including non-public) in completion -
allFields
protected final boolean allFieldsWhether to include all fields (including non-public) in completion -
allConstructors
protected final boolean allConstructorsWhether to include all constructors (including non-public) in completion -
allClasses
protected final boolean allClassesWhether to include all classes (including non-public) in completion
-
-
Constructor Details
-
AccessRules
public AccessRules()Constructs AccessRules with default values (all false). -
AccessRules
Constructs AccessRules from the given options map.- Parameters:
options- map of option keys to values
-