Package org.jboss.jdeparser
Class WildcardJType
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJType
-
- org.jboss.jdeparser.WildcardJType
-
- All Implemented Interfaces:
JType
class WildcardJType extends AbstractJType
-
-
Constructor Summary
Constructors Constructor Description WildcardJType(AbstractJType targetType, boolean extendsNotSuper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JType
array()
An array of this type.(package private) boolean
equals(AbstractJType other)
private boolean
equals(WildcardJType other)
(package private) AbstractJType
getTargetType()
int
hashCode()
(package private) boolean
isExtendsNotSuper()
java.lang.String
simpleName()
Get the simple name of this type.java.lang.String
toString()
JType
wildcardExtends()
Get a wildcard that extends this type.JType
wildcardSuper()
Get a wildcard that this type extends.(package private) void
writeDirect(SourceFileWriter sourceFileWriter)
-
-
-
Field Detail
-
targetType
private final AbstractJType targetType
-
extendsNotSuper
private final boolean extendsNotSuper
-
-
Constructor Detail
-
WildcardJType
public WildcardJType(AbstractJType targetType, boolean extendsNotSuper)
-
-
Method Detail
-
equals
boolean equals(AbstractJType other)
- Specified by:
equals
in classAbstractJType
-
equals
private boolean equals(WildcardJType other)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classAbstractJType
-
simpleName
public java.lang.String simpleName()
Description copied from interface:JType
Get the simple name of this type.- Specified by:
simpleName
in interfaceJType
- Specified by:
simpleName
in classAbstractJType
- Returns:
- the type's simple name
-
array
public JType array()
Description copied from interface:JType
An array of this type.- Specified by:
array
in interfaceJType
- Overrides:
array
in classAbstractJType
- Returns:
- the array type
-
wildcardExtends
public JType wildcardExtends()
Description copied from interface:JType
Get a wildcard that extends this type.- Specified by:
wildcardExtends
in interfaceJType
- Overrides:
wildcardExtends
in classAbstractJType
- Returns:
- the wildcard
-
wildcardSuper
public JType wildcardSuper()
Description copied from interface:JType
Get a wildcard that this type extends.- Specified by:
wildcardSuper
in interfaceJType
- Overrides:
wildcardSuper
in classAbstractJType
- Returns:
- the wildcard
-
writeDirect
void writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Specified by:
writeDirect
in classAbstractJType
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Specified by:
toString
in classAbstractJType
-
getTargetType
AbstractJType getTargetType()
-
isExtendsNotSuper
boolean isExtendsNotSuper()
-
-