public class ClassFieldInspector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClassFieldInspector.GetterOverloadWarning |
Constructor and Description |
---|
ClassFieldInspector(Class<?> classUnderInspection) |
ClassFieldInspector(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 ClassFieldInspector(Class<?> classUnderInspection) throws IOException
classUnderInspection
- The class that the fields to be shadowed are extracted for.IOException
public ClassFieldInspector(Class<?> classUnderInspection, boolean includeFinalMethods) throws IOException
IOException
public Map<String,Integer> getFieldNames()
public boolean isNonGetter(String name)
name
- the field to testpublic Map<String,Field> getFieldTypesField()
public Map<String,Class<?>> getFieldTypes()
public Map<String,Method> getGetterMethods()
public Map<String,Method> getSetterMethods()
public Collection<org.kie.internal.builder.KnowledgeBuilderResult> getInspectionResults(String fieldName)
protected Map<String,Collection<org.kie.internal.builder.KnowledgeBuilderResult>> getResults()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.