public class IntrospectiveClassFieldInspector extends Object implements ClassFieldInspector
| Modifier and Type | Class and Description |
|---|---|
static class |
IntrospectiveClassFieldInspector.GetterOverloadWarning |
| Constructor and Description |
|---|
IntrospectiveClassFieldInspector(Class<?> classUnderInspection) |
IntrospectiveClassFieldInspector(Class<?> classUnderInspection,
boolean includeFinalMethods) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Integer> |
getFieldNames()
Return a mapping of the field "names" (ie bean property name convention)
to the numerical index by which they can be accessed.
|
Class<?> |
getFieldType(String name) |
Map<String,Class<?>> |
getFieldTypes() |
Map<String,Field> |
getFieldTypesField() |
Map<String,Method> |
getGetterMethods() |
Collection<org.kie.internal.builder.KnowledgeBuilderResult> |
getInspectionResults(String fieldName) |
protected Map<String,Collection<org.kie.internal.builder.KnowledgeBuilderResult>> |
getResults() |
Map<String,Method> |
getSetterMethods() |
boolean |
isNonGetter(String name)
sotty:
Checks whether a returned field is actually a getter or not
|
public IntrospectiveClassFieldInspector(Class<?> classUnderInspection) throws IOException
classUnderInspection - The class that the fields to be shadowed are extracted for.IOExceptionpublic IntrospectiveClassFieldInspector(Class<?> classUnderInspection, boolean includeFinalMethods) throws IOException
IOExceptionpublic Map<String,Integer> getFieldNames()
getFieldNames in interface ClassFieldInspectorpublic boolean isNonGetter(String name)
isNonGetter in interface ClassFieldInspectorname - the field to testpublic Map<String,Field> getFieldTypesField()
getFieldTypesField in interface ClassFieldInspectorpublic Map<String,Class<?>> getFieldTypes()
getFieldTypes in interface ClassFieldInspectorpublic Class<?> getFieldType(String name)
getFieldType in interface ClassFieldInspectorpublic Map<String,Method> getGetterMethods()
getGetterMethods in interface ClassFieldInspectorpublic Map<String,Method> getSetterMethods()
getSetterMethods in interface ClassFieldInspectorpublic Collection<org.kie.internal.builder.KnowledgeBuilderResult> getInspectionResults(String fieldName)
getInspectionResults in interface ClassFieldInspectorprotected Map<String,Collection<org.kie.internal.builder.KnowledgeBuilderResult>> getResults()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.