Class JavaPackage

  • All Implemented Interfaces:
    net.ssehub.easy.instantiation.core.model.artifactModel.IArtifact, net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider, net.ssehub.easy.instantiation.core.model.vilTypes.IVilType, IJavaParent

    public class JavaPackage
    extends JavaParentFragmentArtifact
    Represents a Java package.
    Author:
    Sass
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider

        net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.jdt.core.dom.PackageDeclaration packageDeclaration  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JavaPackage​(org.eclipse.jdt.core.dom.PackageDeclaration node, IJavaParent parent)
      Default Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(net.ssehub.easy.instantiation.core.model.artifactModel.IArtifactVisitor visitor)  
      net.ssehub.easy.instantiation.core.model.artifactModel.ArtifactModel getArtifactModel()
      Returns the ArtifactModel.
      net.ssehub.easy.instantiation.core.model.artifactModel.representation.Binary getBinary()  
      java.lang.String getName()  
      java.lang.String getStringValue​(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator)  
      net.ssehub.easy.instantiation.core.model.artifactModel.representation.Text getText()  
      void rename​(java.lang.String name)  
      • Methods inherited from class net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact

        exists, lastModification
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface net.ssehub.easy.instantiation.java.artifacts.IJavaParent

        store
    • Field Detail

      • packageDeclaration

        private org.eclipse.jdt.core.dom.PackageDeclaration packageDeclaration
    • Constructor Detail

      • JavaPackage

        protected JavaPackage​(org.eclipse.jdt.core.dom.PackageDeclaration node,
                              IJavaParent parent)
        Default Constructor.
        Parameters:
        parent - The parent artifact or fragment
        node - The PackageDeclaration
    • Method Detail

      • getName

        public java.lang.String getName()
                                 throws net.ssehub.easy.instantiation.core.model.common.VilException
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • rename

        public void rename​(java.lang.String name)
                    throws net.ssehub.easy.instantiation.core.model.common.VilException
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • getText

        public net.ssehub.easy.instantiation.core.model.artifactModel.representation.Text getText()
                                                                                           throws net.ssehub.easy.instantiation.core.model.common.VilException
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • getBinary

        public net.ssehub.easy.instantiation.core.model.artifactModel.representation.Binary getBinary()
                                                                                               throws net.ssehub.easy.instantiation.core.model.common.VilException
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • accept

        public void accept​(net.ssehub.easy.instantiation.core.model.artifactModel.IArtifactVisitor visitor)
      • getStringValue

        public java.lang.String getStringValue​(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator)
      • getArtifactModel

        public net.ssehub.easy.instantiation.core.model.artifactModel.ArtifactModel getArtifactModel()
        Description copied from interface: IJavaParent
        Returns the ArtifactModel.
        Returns:
        artifactmodel