- All Known Implementing Classes:
SignaturesImpl.TypeArgImpl
- Enclosing interface:
Signature
Models the type argument.
- Since:
- 22
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIndicator for whether a wildcard has default bound, no bound, an upper bound, or a lower bound -
Method Summary
Modifier and TypeMethodDescriptionReturns the signature of the type bound, if any.static Signature.TypeArgextendsOf(Signature.RefTypeSig boundType) Returns an upper-bounded type arg.static Signature.TypeArgof(Signature.RefTypeSig boundType) Returns a bounded type arg.static Signature.TypeArgof(Signature.TypeArg.WildcardIndicator wildcard, Optional<Signature.RefTypeSig> boundType) Returns a bounded type arg.static Signature.TypeArgsuperOf(Signature.RefTypeSig boundType) Returns a lower-bounded type arg.static Signature.TypeArgReturns an unbounded type arg.Returns the wildcard indicator.
-
Method Details
-
wildcardIndicator
Signature.TypeArg.WildcardIndicator wildcardIndicator()Returns the wildcard indicator.- Returns:
- the wildcard indicator
-
boundType
Optional<Signature.RefTypeSig> boundType()Returns the signature of the type bound, if any.- Returns:
- the signature of the type bound, if any
-
of
Returns a bounded type arg.- Parameters:
boundType- the bound- Returns:
- a bounded type arg
-
unbounded
Returns an unbounded type arg.- Returns:
- an unbounded type arg
-
extendsOf
Returns an upper-bounded type arg.- Parameters:
boundType- the upper bound- Returns:
- an upper-bounded type arg
-
superOf
Returns a lower-bounded type arg.- Parameters:
boundType- the lower bound- Returns:
- a lower-bounded type arg
-
of
static Signature.TypeArg of(Signature.TypeArg.WildcardIndicator wildcard, Optional<Signature.RefTypeSig> boundType) Returns a bounded type arg.- Parameters:
wildcard- the wild cardboundType- optional bound type- Returns:
- a bounded type arg
-