Class AbstractNewResourceCheck

    • Constructor Detail

      • AbstractNewResourceCheck

        public AbstractNewResourceCheck()
    • Method Detail

      • registerResourceConsumer

        protected abstract void registerResourceConsumer()
      • isResource

        public static boolean isResource​(BlockTree blockTree)
        If needed - add similar method isData(BlockTree blockTree)
      • isDataOfType

        public static boolean isDataOfType​(BlockTree blockTree,
                                           String dataType)
        If needed - add similar method isResourceOfType(BlockTree blockTree, String dataType)
      • resourceType

        @CheckForNull
        public static String resourceType​(BlockTree tree)
        Despite its name, this method works fine for 'resource', 'data' and all other sorts of Terraform top-level blocks