Class SourceCode.Element<T>

    • Field Detail

      • name

        protected java.lang.String name
      • type

        protected org.apache.openjpa.persistence.util.SourceCode.ClassName type
      • isStatic

        protected boolean isStatic
      • isFinal

        protected boolean isFinal
      • comment

        protected org.apache.openjpa.persistence.util.SourceCode.Comment comment
      • params

        protected java.util.List<org.apache.openjpa.persistence.util.SourceCode.ClassName> params
    • Constructor Detail

      • Element

        protected Element​(java.lang.String name,
                          org.apache.openjpa.persistence.util.SourceCode.ClassName type)
    • Method Detail

      • getType

        public org.apache.openjpa.persistence.util.SourceCode.ClassName getType()
      • compareTo

        public int compareTo​(SourceCode.Element<T> other)
        Specified by:
        compareTo in interface java.lang.Comparable<T>
      • addComment

        public T addComment​(boolean inline,
                            java.lang.String... lines)
      • makePublic

        public T makePublic()
      • makeProtected

        public T makeProtected()
      • makePrivate

        public T makePrivate()
      • makeStatic

        public T makeStatic()
      • makeFinal

        public T makeFinal()
      • write

        public void write​(java.io.PrintWriter out,
                          int tab)