Class ClassFileArtifact

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

    public class ClassFileArtifact
    extends net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact
    Represents a Java class file.
    Author:
    Holger Eichelberger, 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 inherited from class net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact

        DEFAULT
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassFileArtifact​(java.io.File file, net.ssehub.easy.instantiation.core.model.artifactModel.ArtifactModel model)
      Creates a new class file artifact.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String annotationValue​(java.lang.String annotation, java.lang.String field)
      Returns the annotation value.
      void artifactChanged​(java.lang.Object cause)  
      net.ssehub.easy.instantiation.core.model.vilTypes.Set<JavaClass> classes()
      Returns the classes of this java file.
      void store()  
      • Methods inherited from class net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact

        accept, convert, convert, convert, convert, copy, create, createBinary, createText, delete, determineActualValue, exists, getArtifactModel, getMd5Hash, getName, getPath, getPathSegments, getPlainName, getStringValue, hasSameContent, isTemporary, lastModification, move, rename, selectAll, setExecutable, substituteExtension
      • Methods inherited from class net.ssehub.easy.instantiation.core.model.artifactModel.CompositeArtifact

        getBinary, getBinaryInstance, getRepresentationChanged, getText, getTextInstance, update
      • 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.core.model.artifactModel.IArtifact

        getBinary, getText, update
    • Constructor Detail

      • ClassFileArtifact

        ClassFileArtifact​(java.io.File file,
                          net.ssehub.easy.instantiation.core.model.artifactModel.ArtifactModel model)
        Creates a new class file artifact.
        Parameters:
        file - the file to read the artifact contents from
        model - the artifact model to create this folder artifact within
    • Method Detail

      • annotationValue

        public java.lang.String annotationValue​(java.lang.String annotation,
                                                java.lang.String field)
        Returns the annotation value.
        Parameters:
        annotation - the name of the annotation type
        field - the field to be returned
        Returns:
        the field or null if not found
      • artifactChanged

        public void artifactChanged​(java.lang.Object cause)
                             throws net.ssehub.easy.instantiation.core.model.common.VilException
        Specified by:
        artifactChanged in interface net.ssehub.easy.instantiation.core.model.artifactModel.IArtifactChangedListener
        Overrides:
        artifactChanged in class net.ssehub.easy.instantiation.core.model.artifactModel.CompositeArtifact
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • store

        public void store()
                   throws net.ssehub.easy.instantiation.core.model.common.VilException
        Specified by:
        store in interface net.ssehub.easy.instantiation.core.model.artifactModel.IArtifact
        Overrides:
        store in class net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • classes

        public net.ssehub.easy.instantiation.core.model.vilTypes.Set<JavaClass> classes()
        Returns the classes of this java file.
        Returns:
        the annotations