Interface JVarDeclaration

    • Method Detail

      • type

        JType type()
        Get the variable type.
        Returns:
        the variable type
      • name

        java.lang.String name()
        Get the variable name.
        Returns:
        the variable name
      • add

        JVarDeclaration add​(java.lang.String name,
                            JExpr init)
        Add another item to this declaration. Subsequent items always have the same type as this item.
        Parameters:
        name - the variable name
        init - the variable initializer
        Returns:
        the subsequent declaration
      • add

        JVarDeclaration add​(java.lang.String name)
        Add another item to this declaration. Subsequent items always have the same type as this item.
        Parameters:
        name - the variable name
        Returns:
        the subsequent declaration