Class ClassFileArtifact
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.artifactModel.CompositeArtifact
-
- net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact
-
- net.ssehub.easy.instantiation.java.artifacts.ClassFileArtifact
-
- All Implemented Interfaces:
IArtifact,IArtifactChangedListener,IFileSystemArtifact,IActualValueProvider,IStringValueProvider,IVilType
public class ClassFileArtifact extends 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
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, ArtifactModel model)Creates a new class file artifact.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringannotationValue(java.lang.String annotation, java.lang.String field)Returns the annotation value.voidartifactChanged(java.lang.Object cause)Is called when the artifact was changed, e.g., to trigger a reanalysis of substructures.Set<JavaClass>classes()Returns the classes of this java file.voidstore()Stores this artifact in case of changes.-
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, getName, getPath, getPathSegments, getPlainName, getStringValue, isTemporary, lastModification, move, rename, selectAll, substituteExtension
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.artifactModel.CompositeArtifact
getBinary, getBinaryInstance, getRepresentationChanged, getText, getTextInstance, update
-
-
-
-
Constructor Detail
-
ClassFileArtifact
ClassFileArtifact(java.io.File file, ArtifactModel model)Creates a new class file artifact.- Parameters:
file- the file to read the artifact contents frommodel- 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 typefield- the field to be returned- Returns:
- the field or null if not found
-
artifactChanged
public void artifactChanged(java.lang.Object cause) throws VilExceptionDescription copied from interface:IArtifactChangedListenerIs called when the artifact was changed, e.g., to trigger a reanalysis of substructures.- Specified by:
artifactChangedin interfaceIArtifactChangedListener- Overrides:
artifactChangedin classCompositeArtifact- Parameters:
cause- the cause for the change, e.g., an artifact representation- Throws:
VilException- in case that the required operations fail for some reason
-
store
public void store() throws VilExceptionDescription copied from interface:IArtifactStores this artifact in case of changes.- Specified by:
storein interfaceIArtifact- Overrides:
storein classFileArtifact- Throws:
VilException- in case of problems storing this artifact
-
-