Package org.jboss.jdeparser
Class ThisJType
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJType
-
- org.jboss.jdeparser.ThisJType
-
- All Implemented Interfaces:
JType
class ThisJType extends AbstractJType
-
-
Constructor Summary
Constructors Constructor Description ThisJType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JExpr_class()An expression of the formThisType.class.JCall_new()Construct a new instance of this non-array type.JAnonymousClassDef_newAnon()Construct a new anonymous subclass of this type.JExpr_super()An expression of the formThisType.super.JExpr_this()An expression of the formThisType.this.(package private) booleanequals(AbstractJType other)inthashCode()java.lang.StringsimpleName()Get the simple name of this type.java.lang.StringtoString()(package private) voidwriteDirect(SourceFileWriter sourceFileWriter)-
Methods inherited from class org.jboss.jdeparser.AbstractJType
_new, _new, _newArray, $t, $v, array, box, call, call, elementType, equals, erasure, field, methodRef, methodRef, nestedType, of, qualifiedName, typeArg, typeArg, typeArg, typeArgs, unbox, wildcardExtends, wildcardSuper
-
-
-
-
Method Detail
-
equals
boolean equals(AbstractJType other)
- Specified by:
equalsin classAbstractJType
-
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
-
toString
public java.lang.String toString()
- Specified by:
toStringin classAbstractJType
-
_class
public JExpr _class()
Description copied from interface:JTypeAn expression of the formThisType.class.- Specified by:
_classin interfaceJType- Overrides:
_classin classAbstractJType- Returns:
- the expression
-
_this
public JExpr _this()
Description copied from interface:JTypeAn expression of the formThisType.this. If the type is an array type, an exception is thrown.- Specified by:
_thisin interfaceJType- Overrides:
_thisin classAbstractJType- Returns:
- the expression
-
_super
public JExpr _super()
Description copied from interface:JTypeAn expression of the formThisType.super. If the type is an array type, an exception is thrown.- Specified by:
_superin interfaceJType- Overrides:
_superin classAbstractJType- Returns:
- the expression
-
_new
public JCall _new()
Description copied from interface:JTypeConstruct a new instance of this non-array type. If the type is an array type, an exception is thrown.- Specified by:
_newin interfaceJType- Overrides:
_newin classAbstractJType- Returns:
- the construction call
-
_newAnon
public JAnonymousClassDef _newAnon()
Description copied from interface:JTypeConstruct a new anonymous subclass of this type.- Specified by:
_newAnonin interfaceJType- Overrides:
_newAnonin classAbstractJType- Returns:
- the anonymous subclass definition
-
writeDirect
void writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Specified by:
writeDirectin classAbstractJType- Throws:
java.io.IOException
-
-