Class JvmModelCompleter


  • public class JvmModelCompleter
    extends java.lang.Object
    Adds expected default values to a created JvmModel. This is not meant to be enhanced in a language specific way, but really just to add things which are implicit in the Java language, such as default constructors or that a class extends java.lang.Object
    Since:
    2.7
    Noreference:
    This class is not intended to be referenced by clients.
    Noextend:
    This class is not intended to be subclassed by clients.
    Noinstantiate:
    This class is not intended to be instantiated by clients.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addAnnotations​(org.eclipse.xtext.common.types.JvmDeclaredType jvmType)  
      void complete​(java.lang.Iterable<? extends org.eclipse.xtext.common.types.JvmIdentifiableElement> elements)  
      void complete​(org.eclipse.xtext.common.types.JvmIdentifiableElement element)  
      protected void completeJvmAnnotationType​(org.eclipse.xtext.common.types.JvmAnnotationType element)  
      void completeJvmConstructor​(org.eclipse.xtext.common.types.JvmConstructor constructor)  
      protected void completeJvmEnumerationLiteral​(org.eclipse.xtext.common.types.JvmEnumerationLiteral element)  
      protected void completeJvmEnumerationType​(org.eclipse.xtext.common.types.JvmEnumerationType element)  
      protected void completeJvmGenericType​(org.eclipse.xtext.common.types.JvmGenericType element)  
      protected void ensureSuperTypeObject​(org.eclipse.xtext.common.types.JvmDeclaredType element)  
      protected java.lang.String replaceVariables​(java.lang.String commentForGenerated, org.eclipse.xtext.common.types.JvmDeclaredType jvmType)
      Replace the variables contained in the comment to be written to the @Generated annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GENERATED_COMMENT_VAR_SOURCE_FILE

        protected static final java.lang.String GENERATED_COMMENT_VAR_SOURCE_FILE
        See Also:
        Constant Field Values
    • Constructor Detail

      • JvmModelCompleter

        public JvmModelCompleter()
    • Method Detail

      • complete

        public void complete​(java.lang.Iterable<? extends org.eclipse.xtext.common.types.JvmIdentifiableElement> elements)
      • complete

        public void complete​(org.eclipse.xtext.common.types.JvmIdentifiableElement element)
      • completeJvmEnumerationType

        protected void completeJvmEnumerationType​(org.eclipse.xtext.common.types.JvmEnumerationType element)
      • completeJvmEnumerationLiteral

        protected void completeJvmEnumerationLiteral​(org.eclipse.xtext.common.types.JvmEnumerationLiteral element)
      • completeJvmAnnotationType

        protected void completeJvmAnnotationType​(org.eclipse.xtext.common.types.JvmAnnotationType element)
      • completeJvmConstructor

        public void completeJvmConstructor​(org.eclipse.xtext.common.types.JvmConstructor constructor)
      • completeJvmGenericType

        protected void completeJvmGenericType​(org.eclipse.xtext.common.types.JvmGenericType element)
      • ensureSuperTypeObject

        protected void ensureSuperTypeObject​(org.eclipse.xtext.common.types.JvmDeclaredType element)
      • addAnnotations

        protected void addAnnotations​(org.eclipse.xtext.common.types.JvmDeclaredType jvmType)
        Since:
        2.8
      • replaceVariables

        protected java.lang.String replaceVariables​(java.lang.String commentForGenerated,
                                                    org.eclipse.xtext.common.types.JvmDeclaredType jvmType)
        Replace the variables contained in the comment to be written to the @Generated annotation.