public List < Taglet > getCustomTaglets ( Element e ) { switch ( e . getKind ( ) ) { case CONSTRUCTOR : return getConstructorCustomTaglets ( ) ; case METHOD : return getMethodCustomTaglets ( ) ; case ENUM_CONSTANT : case FIELD : return getFieldCustomTaglets ( ) ; case ANNOTATION_TYPE : case INTERFACE : case CLASS : case ENUM : return getTypeCustomTaglets ( ) ; case MODULE : return getModuleCustomTaglets ( ) ; case PACKAGE : return getPackageCustomTaglets ( ) ; case OTHER : return getOverviewCustomTaglets ( ) ; default : throw new AssertionError ( "unknown element: " + e + " ,kind: " + e . getKind ( ) ) ; } }
Returns the custom tags for a given element .