ch.qos.logback.core.joran.util
Class Introspector

java.lang.Object
  extended by ch.qos.logback.core.joran.util.Introspector

public class Introspector
extends Object

The Introspector class provides a standard way for tools to learn about the properties, events, and methods supported by a target class.

Author:
Anthony K. Trinh

Constructor Summary
Introspector()
           
 
Method Summary
static String decapitalize(String name)
          Converts a name string's first letter to lowercase
static MethodDescriptor[] getMethodDescriptors(Class<?> clazz)
          Gets a class's method descriptors
static PropertyDescriptor[] getPropertyDescriptors(Class<?> clazz)
          Gets a class's property descriptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Introspector

public Introspector()
Method Detail

decapitalize

public static String decapitalize(String name)
Converts a name string's first letter to lowercase

Parameters:
name - name string to evaluate
Returns:
the name with its first letter in lowercase

getMethodDescriptors

public static MethodDescriptor[] getMethodDescriptors(Class<?> clazz)
Gets a class's method descriptors

Parameters:
clazz - class to be evaluated
Returns:
method descriptors

getPropertyDescriptors

public static PropertyDescriptor[] getPropertyDescriptors(Class<?> clazz)
Gets a class's property descriptors. All properties have methods whose name begins with "set" or "get". The setters must have a single parameter and getters must have none.

Parameters:
clazz - class to be evaluated
Returns:
property descriptors


Copyright © 2005-2013 QOS.ch. All Rights Reserved.