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:
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.FileArtifactRepresents a Java class file.- Author:
- Holger Eichelberger, Sass
-
-
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.StringannotationValue(java.lang.String annotation, java.lang.String field)Returns the annotation value.voidartifactChanged(java.lang.Object cause)net.ssehub.easy.instantiation.core.model.vilTypes.Set<JavaClass>classes()Returns the classes of this java file.voidstore()-
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
-
-
-
-
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 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 net.ssehub.easy.instantiation.core.model.common.VilException- Specified by:
artifactChangedin interfacenet.ssehub.easy.instantiation.core.model.artifactModel.IArtifactChangedListener- Overrides:
artifactChangedin classnet.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:
storein interfacenet.ssehub.easy.instantiation.core.model.artifactModel.IArtifact- Overrides:
storein classnet.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
-
-