Class AbstractJavaStatement

  • 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
    Direct Known Subclasses:
    JavaAssignment, JavaCall

    abstract class AbstractJavaStatement
    extends JavaParentFragmentArtifact
    Super class for nested elements of a JavaMethod. Should not be visible in VIL, thus, do not register this class.
    Author:
    El-Sharkawy
    • 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 java.lang.String attributeName  
      private java.lang.String binding  
      private org.eclipse.jdt.core.dom.ExpressionStatement expression  
      private java.lang.String qualifiedName  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractJavaStatement​(IJavaParent parent, org.eclipse.jdt.core.dom.ExpressionStatement expression, java.lang.String attributeName, org.eclipse.jdt.core.dom.ITypeBinding typeBinding)
      Default constructor of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(net.ssehub.easy.instantiation.core.model.artifactModel.IArtifactVisitor visitor)  
      void delete()  
      net.ssehub.easy.instantiation.core.model.artifactModel.representation.Binary getBinary()  
      java.lang.String getName()  
      java.lang.String getQualifiedName()
      Returns the qualified name represented as string.
      java.lang.String getStringValue​(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator)  
      net.ssehub.easy.instantiation.core.model.artifactModel.representation.Text getText()  
      java.lang.String getType()
      Returns the type of the call represented as string.
      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
    • Field Detail

      • attributeName

        private java.lang.String attributeName
      • expression

        private org.eclipse.jdt.core.dom.ExpressionStatement expression
      • binding

        private java.lang.String binding
      • qualifiedName

        private java.lang.String qualifiedName
    • Constructor Detail

      • AbstractJavaStatement

        AbstractJavaStatement​(IJavaParent parent,
                              org.eclipse.jdt.core.dom.ExpressionStatement expression,
                              java.lang.String attributeName,
                              org.eclipse.jdt.core.dom.ITypeBinding typeBinding)
        Default constructor of this class.
        Parameters:
        parent - The parent of this artifact.
        expression - The Statement expression, which may be edited.
        attributeName - The name of the statement.
        typeBinding - The type of the binding
    • Method Detail

      • delete

        public void delete()
                    throws net.ssehub.easy.instantiation.core.model.common.VilException
        Specified by:
        delete in interface net.ssehub.easy.instantiation.core.model.artifactModel.IArtifact
        Overrides:
        delete in class JavaFragmentArtifact
        Throws:
        net.ssehub.easy.instantiation.core.model.common.VilException
      • 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
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Returns the qualified name represented as string.
        Returns:
        qualified name as string
      • getType

        public java.lang.String getType()
        Returns the type of the call represented as string.
        Returns:
        type as string
      • 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)