Class DeclarationAnnotationHelper
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.types.DeclarationAnnotationHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents information about where to place declaration andElementType.TYPE_USEannotations for a place where both can occur. -
Method Summary
Modifier and TypeMethodDescriptiongetDeclarationInfo(JavaTypeInstance nullableAnnotatedType, List<AnnotationTableEntry> declarationAnnotations, List<AnnotationTableTypeEntry> typeAnnotations) Calculates information about where to place declaration andElementType.TYPE_USEannotations for a place where both can occur.
-
Method Details
-
getDeclarationInfo
public static DeclarationAnnotationHelper.DeclarationAnnotationsInfo getDeclarationInfo(JavaTypeInstance nullableAnnotatedType, List<AnnotationTableEntry> declarationAnnotations, List<AnnotationTableTypeEntry> typeAnnotations) Calculates information about where to place declaration andElementType.TYPE_USEannotations for a place where both can occur.- Parameters:
nullableAnnotatedType- Type for which theTYPE_USEannotations apply,nullif there is no type (e.g. for constructor declarations)declarationAnnotations- Annotations for the declaration, e.g.ElementType.FIELDtypeAnnotations- Annotations for the type, i.e.ElementType.TYPE_USE- Returns:
- Information about how to place the annotations
-