Package org.panda_lang.utilities.inject
Interface Property
public interface Property
Represents injectable property. Supported implementations:
- fields
- parameters
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
AgetAnnotation(Class<A> annotation) Get the specific annotationGet annotations assigned to the propertygetField()Get associated field if presentgetName()Get property nameGet associated parameter if presentGet the generic signature used by the propertyClass<?>getType()Get a property type
-
Method Details
-
getField
Get associated field if present- Returns:
- the associated field
-
getParameter
Get associated parameter if present- Returns:
- the associated parameter
-
getAnnotation
Get the specific annotation- Type Parameters:
A- the annotation type- Parameters:
annotation- the type of annotation to search for- Returns:
- annotation instance if found, otherwise null
-
getAnnotations
Annotation[] getAnnotations()Get annotations assigned to the property- Returns:
- the annotations of property
-
getParametrizedType
Type getParametrizedType()Get the generic signature used by the property- Returns:
- the parametrized type of property
-
getType
Class<?> getType()Get a property type- Returns:
- the type of property
-
getName
String getName()Get property name- Returns:
- the name of property
-