Class NarrowedJType

java.lang.Object
org.jboss.jdeparser.AbstractJType
org.jboss.jdeparser.NarrowedJType
All Implemented Interfaces:
JType

class NarrowedJType extends AbstractJType
  • Field Details

  • Constructor Details

  • Method Details

    • equals

      boolean equals(AbstractJType other)
      Specified by:
      equals in class AbstractJType
    • equals

      private boolean equals(NarrowedJType other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class AbstractJType
    • simpleName

      public 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
    • _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()
      Description copied from interface: JType
      Construct a new instance of this non-array type. If the type is an array type, an exception is thrown.
      Specified by:
      _new in interface JType
      Overrides:
      _new in class AbstractJType
      Returns:
      the construction call
    • _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
    • 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
    • concat

      private static JType[] concat(JType[] a, JType[] b)
    • typeArgs

      public JType[] typeArgs()
      Description copied from interface: JType
      Get the type arguments of this type.
      Specified by:
      typeArgs in interface JType
      Overrides:
      typeArgs in class AbstractJType
      Returns:
      the type arguments of this type
    • erasure

      public JType erasure()
      Description copied from interface: JType
      The erasure of this type.
      Specified by:
      erasure in interface JType
      Overrides:
      erasure in class AbstractJType
      Returns:
      the erasure of this type
    • call

      public JCall call(String name)
      Description copied from interface: JType
      Call a static method on this type.
      Specified by:
      call in interface JType
      Overrides:
      call in class AbstractJType
      Parameters:
      name - the method to call
      Returns:
      the method call
    • nestedType

      public JType nestedType(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
    • writeDirect

      void writeDirect(SourceFileWriter sourceFileWriter) throws IOException
      Specified by:
      writeDirect in class AbstractJType
      Throws:
      IOException
    • toString

      public String toString()
      Specified by:
      toString in class AbstractJType