class ObjectInspector
extends Object
Adapts Groovy's inspector output into structures used by groovysh commands and completions.
| Modifiers | Name | Description |
|---|---|---|
static String |
FIELD_MODIFIERS |
Modifier key used in method descriptions. |
static String |
FIELD_NAME |
Field name key used in method and property descriptions. |
static String |
FIELD_PARAMETERS |
Parameter list key used in method descriptions. |
static String |
FIELD_RETURN |
Return type key used in method descriptions. |
static List<String> |
GLOBAL_META_METHODS |
Meta-method names that are treated as globally available and hidden from results. |
static List<String> |
METHOD_COLUMNS |
Column order used when converting inspector method rows into maps. |
| Constructor and description |
|---|
ObjectInspector(Object obj)Creates an inspector facade for the supplied object. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
List<Map<String, String>> |
metaMethods()Returns meta-methods while filtering operator-style entries. |
|
List<Map<String, String>> |
metaMethods(boolean includeOperatorMethods)Returns meta-methods visible on the inspected object. |
|
List<Map<String, String>> |
methods()Returns declared methods as maps keyed by METHOD_COLUMNS. |
|
Object |
properties()Returns grouped property information from the Groovy inspector. |
Modifier key used in method descriptions.
Field name key used in method and property descriptions.
Parameter list key used in method descriptions.
Return type key used in method descriptions.
Meta-method names that are treated as globally available and hidden from results.
Groovy inspector backing the extracted metadata.
Object being described.
Type hierarchy names collected for the inspected object.
Creates an inspector facade for the supplied object.
obj - object to inspectReturns meta-methods while filtering operator-style entries.
Returns meta-methods visible on the inspected object.
includeOperatorMethods - whether operator-style meta-methods should be includedReturns declared methods as maps keyed by METHOD_COLUMNS.
Returns grouped property information from the Groovy inspector.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.