Class AbstractTransformer

    • Constructor Detail

      • AbstractTransformer

        public AbstractTransformer​(SourceUnit sourceUnit)
        This constructor needs a source unit
        Parameters:
        sourceUnit - the related source unit where the expression belongs
        Since:
        0.2.0
    • Method Detail

      • getSourceUnit

        public SourceUnit getSourceUnit()
        This method returns the source unit
        Specified by:
        getSourceUnit in class ClassCodeVisitorSupport
        Returns:
        the source unit related to the expression we want to transform
        Since:
        0.2.0
      • getModule

        public ModuleNode getModule()
        This method returns the module of the current SourceUnit instance
        Returns:
        a ModuleNode instance
        Since:
        0.2.0
      • getModulePackageName

        public String getModulePackageName()
        Sometimes could be useful to get the package name of the current module
        Returns:
        A String representing the current qualified package name
        Since:
        0.2.0