Class CtTryImpl

    • Constructor Detail

      • CtTryImpl

        public CtTryImpl()
    • Method Detail

      • getCatchers

        public List<CtCatch> getCatchers()
        Description copied from interface: CtTry
        Gets the catchers of this try.
        Specified by:
        getCatchers in interface CtTry
      • setCatchers

        public <T extends CtTry> T setCatchers​(List<CtCatch> catchers)
        Description copied from interface: CtTry
        Sets the catchers of this try.
        Specified by:
        setCatchers in interface CtTry
      • addCatcher

        public <T extends CtTry> T addCatcher​(CtCatch catcher)
        Description copied from interface: CtTry
        Adds a catch block.
        Specified by:
        addCatcher in interface CtTry
      • removeCatcher

        public boolean removeCatcher​(CtCatch catcher)
        Description copied from interface: CtTry
        Removes a catch block.
        Specified by:
        removeCatcher in interface CtTry
      • getFinalizer

        public CtBlock<?> getFinalizer()
        Description copied from interface: CtTry
        Gets the finalizer block of this try ( finally part).
        Specified by:
        getFinalizer in interface CtTry
      • setFinalizer

        public <T extends CtTry> T setFinalizer​(CtBlock<?> finalizer)
        Description copied from interface: CtTry
        Sets the finalizer block of this try ( finally part).
        Specified by:
        setFinalizer in interface CtTry
      • setBody

        public <T extends CtBodyHolder> T setBody​(CtStatement statement)
        Description copied from interface: CtBodyHolder
        Sets the body of this element. If body is not a block, it is wrapped in a CtBlock which is semantically equivalent and eases transformation afterwards if required.
        Specified by:
        setBody in interface CtBodyHolder
      • S

        public Void S()
        Description copied from interface: TemplateParameter
        Gets the type of the template parameter. This methods has no runtime meaning (should return a null reference) but is used as a marker in a template code.
        Specified by:
        S in interface TemplateParameter<Void>