Class AbstractJavaStatement

    • 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

      • getName

        public java.lang.String getName()
                                 throws VilException
        Description copied from interface: IArtifact
        Returns the name of this artifact.
        Returns:
        the name of this artifact
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • rename

        public void rename​(java.lang.String name)
                    throws VilException
        Description copied from interface: IArtifact
        Renames this artifact.
        Parameters:
        name - the new name of this artifact
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • 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 Text getText()
                     throws VilException
        Description copied from interface: IArtifact
        Returns the textual representation of the contents of this artifact for manipulation. In case of binary artifacts, the returned object may be empty.
        Returns:
        the textual representation of the contents
        Throws:
        VilException - in case of obtaining the representation causes serious problems
      • getBinary

        public Binary getBinary()
                         throws VilException
        Description copied from interface: IArtifact
        Returns the binary representation of the contents of this artifact for manipulation.
        Returns:
        the binary representation of the contents
        Throws:
        VilException - in case of obtaining the representation causes serious problems
      • accept

        public void accept​(IArtifactVisitor visitor)
        Description copied from interface: IArtifact
        Visits this artifact (and dependent on the visitor also contained artifacts and fragments) using the given visitor.
        Parameters:
        visitor - the visitor used for visiting this artifact
      • getStringValue

        public java.lang.String getStringValue​(IStringValueProvider.StringComparator comparator)
        Description copied from interface: IStringValueProvider
        Returns the string value of this object.
        Parameters:
        comparator - if the sequence of elements, e.g., in case of collections, shall be ordered according to the comparator, null if the original sequence shall be returned
        Returns:
        the string value