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 JTypearray()An array of this type.(package private) booleanequals(AbstractJType other)private booleanequals(WildcardJType other)(package private) AbstractJTypegetTargetType()inthashCode()(package private) booleanisExtendsNotSuper()java.lang.StringsimpleName()Get the simple name of this type.java.lang.StringtoString()JTypewildcardExtends()Get a wildcard that extends this type.JTypewildcardSuper()Get a wildcard that this type extends.(package private) voidwriteDirect(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:
equalsin classAbstractJType
-
equals
private boolean equals(WildcardJType other)
-
hashCode
public int hashCode()
- Specified by:
hashCodein classAbstractJType
-
simpleName
public java.lang.String simpleName()
Description copied from interface:JTypeGet the simple name of this type.- Specified by:
simpleNamein interfaceJType- Specified by:
simpleNamein classAbstractJType- Returns:
- the type's simple name
-
array
public JType array()
Description copied from interface:JTypeAn array of this type.- Specified by:
arrayin interfaceJType- Overrides:
arrayin classAbstractJType- Returns:
- the array type
-
wildcardExtends
public JType wildcardExtends()
Description copied from interface:JTypeGet a wildcard that extends this type.- Specified by:
wildcardExtendsin interfaceJType- Overrides:
wildcardExtendsin classAbstractJType- Returns:
- the wildcard
-
wildcardSuper
public JType wildcardSuper()
Description copied from interface:JTypeGet a wildcard that this type extends.- Specified by:
wildcardSuperin interfaceJType- Overrides:
wildcardSuperin classAbstractJType- Returns:
- the wildcard
-
writeDirect
void writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Specified by:
writeDirectin classAbstractJType- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Specified by:
toStringin classAbstractJType
-
getTargetType
AbstractJType getTargetType()
-
isExtendsNotSuper
boolean isExtendsNotSuper()
-
-