Class JFieldVar

    • Constructor Detail

      • JFieldVar

        JFieldVar​(JDefinedClass owner,
                  JMods mods,
                  JType type,
                  java.lang.String name,
                  JExpression init)
        JFieldVar constructor
        Parameters:
        type - Datatype of this variable
        name - Name of this variable
        init - Value to initialize this variable to
    • Method Detail

      • name

        public void name​(java.lang.String name)
        Description copied from class: JVar
        Changes the name of this variable.
        Overrides:
        name in class JVar
      • javadoc

        public JDocComment javadoc()
        Creates, if necessary, and returns the class javadoc for this JDefinedClass
        Specified by:
        javadoc in interface JDocCommentable
        Returns:
        JDocComment containing javadocs for this class