public class PojoMetadata
extends java.lang.Object
FieldInterceptor and
MethodInterceptor.| Constructor and Description |
|---|
PojoMetadata(org.apache.felix.ipojo.metadata.Element metadata)
Creates Pojo metadata.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName() |
MethodMetadata |
getConstructor(java.lang.String[] types)
Gets the constructor corresponding to the given argument types.
|
MethodMetadata[] |
getConstructors()
Gets the MethodMetadata list corresponding to the constructors
(contained in the implementation class).
|
FieldMetadata |
getField(java.lang.String name)
Gets the field metadata for the given name.
|
FieldMetadata |
getField(java.lang.String name,
java.lang.String type)
Gets the field metadata for the given name and type.
|
FieldMetadata[] |
getFields() |
java.lang.String[] |
getInnerClasses()
Gets the inner classes from the manipulated class
|
java.lang.String[] |
getInterfaces() |
MethodMetadata |
getMethod(java.lang.String name)
Gets the MethodMetadata corresponding to the method
(contained in the implementation class) with
the given name.
|
MethodMetadata |
getMethod(java.lang.String name,
java.lang.String[] types)
Gets the MethodMetadata corresponding to the method
(contained in the implementation class) to given name
and argument types.
|
MethodMetadata[] |
getMethods() |
MethodMetadata[] |
getMethods(java.lang.String name)
Gets the MethodMetadata list corresponding to the method
(contained in the implementation class) to given name.
|
MethodMetadata[] |
getMethodsFromInnerClass(java.lang.String inner)
Gets the methods from the given inner class.
|
java.lang.String |
getSuperClass() |
boolean |
isInterfaceImplemented(java.lang.String itf)
Checks if the given interface name is implemented.
|
public PojoMetadata(org.apache.felix.ipojo.metadata.Element metadata)
throws ConfigurationException
metadata - the component type metadataConfigurationException - if the manipulation metadata cannot be foundpublic MethodMetadata[] getMethods()
public FieldMetadata[] getFields()
public java.lang.String[] getInterfaces()
public java.lang.String getClassName()
public java.lang.String[] getInnerClasses()
public MethodMetadata[] getMethodsFromInnerClass(java.lang.String inner)
inner - the inner class namepublic FieldMetadata getField(java.lang.String name)
name - : the name of the fieldnull if not foundpublic FieldMetadata getField(java.lang.String name, java.lang.String type)
name - : the name of the fieldtype - : the type of the fieldnull if not foundpublic boolean isInterfaceImplemented(java.lang.String itf)
itf - the interface to check.true if the implementation class implements
the given interface.public MethodMetadata getMethod(java.lang.String name)
name - the name of the method to find.null if not foundpublic MethodMetadata[] getMethods(java.lang.String name)
name - the name of the method to look for.public MethodMetadata[] getConstructors()
public MethodMetadata getMethod(java.lang.String name, java.lang.String[] types)
name - the name of the method to look for.types - the array of the argument types of the methodnull if not foundpublic MethodMetadata getConstructor(java.lang.String[] types)
types - the argument typesnull if not found.public java.lang.String getSuperClass()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.