Class SuccessorJVarDeclaration

    • Constructor Detail

    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: JVarDeclaration
        Get the variable name.
        Specified by:
        name in interface JVarDeclaration
        Returns:
        the variable name
      • getValue

        JExpr getValue()
      • annotate

        public JAnnotation annotate​(java.lang.Class<? extends java.lang.annotation.Annotation> type)
        Description copied from interface: JAnnotatable
        Add an annotation.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        type - the type of the annotation to add
        Returns:
        the new annotation
      • annotate

        public JAnnotation annotate​(JType type)
        Description copied from interface: JAnnotatable
        Add an annotation.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        type - the type of the annotation to add
        Returns:
        the new annotation
      • annotate

        public JAnnotation annotate​(java.lang.String type)
        Description copied from interface: JAnnotatable
        Add an annotation.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        type - the type of the annotation to add
        Returns:
        the new annotation
      • add

        public JVarDeclaration add​(java.lang.String name)
        Description copied from interface: JVarDeclaration
        Add another item to this declaration. Subsequent items always have the same type as this item.
        Specified by:
        add in interface JVarDeclaration
        Parameters:
        name - the variable name
        Returns:
        the subsequent declaration
      • add

        public JVarDeclaration add​(java.lang.String name,
                                   JExpr init)
        Description copied from interface: JVarDeclaration
        Add another item to this declaration. Subsequent items always have the same type as this item.
        Specified by:
        add in interface JVarDeclaration
        Parameters:
        name - the variable name
        init - the variable initializer
        Returns:
        the subsequent declaration