Class NestedJType

    • Constructor Detail

      • NestedJType

        NestedJType​(AbstractJType enclosingType,
                    java.lang.String name)
    • Method Detail

      • _class

        public JExpr _class()
        Description copied from interface: JType
        An expression of the form ThisType.class.
        Specified by:
        _class in interface JType
        Overrides:
        _class in class AbstractJType
        Returns:
        the expression
      • _this

        public JExpr _this()
        Description copied from interface: JType
        An expression of the form ThisType.this. If the type is an array type, an exception is thrown.
        Specified by:
        _this in interface JType
        Overrides:
        _this in class AbstractJType
        Returns:
        the expression
      • _super

        public JExpr _super()
        Description copied from interface: JType
        An expression of the form ThisType.super. If the type is an array type, an exception is thrown.
        Specified by:
        _super in interface JType
        Overrides:
        _super in class AbstractJType
        Returns:
        the expression
      • _new

        public JCall _new​(JExpr dim)
        Description copied from interface: JType
        Construct a new instance of this array type. If the type is not an array type, an exception is thrown.
        Specified by:
        _new in interface JType
        Overrides:
        _new in class AbstractJType
        Parameters:
        dim - the array size
        Returns:
        the construction call
      • equals

        private boolean equals​(NestedJType other)
      • simpleName

        public java.lang.String simpleName()
        Description copied from interface: JType
        Get the simple name of this type.
        Specified by:
        simpleName in interface JType
        Specified by:
        simpleName in class AbstractJType
        Returns:
        the type's simple name
      • typeArg

        public JType typeArg​(JType... args)
        Description copied from interface: JType
        This type, with the given generic type arguments.
        Specified by:
        typeArg in interface JType
        Overrides:
        typeArg in class AbstractJType
        Parameters:
        args - the type arguments
        Returns:
        the generic type
      • nestedType

        public JType nestedType​(java.lang.String name)
        Description copied from interface: JType
        Get a nested type within this reference type.
        Specified by:
        nestedType in interface JType
        Overrides:
        nestedType in class AbstractJType
        Parameters:
        name - the name of the nested type
        Returns:
        the nested type