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) boolean
equals(AbstractJType other)
int
hashCode()
java.lang.String
simpleName()
Get the simple name of this type.java.lang.String
toString()
(package private) void
writeDirect(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:
equals
in classAbstractJType
-
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
-
toString
public java.lang.String toString()
- Specified by:
toString
in classAbstractJType
-
_class
public JExpr _class()
Description copied from interface:JType
An expression of the formThisType.class
.- Specified by:
_class
in interfaceJType
- Overrides:
_class
in classAbstractJType
- Returns:
- the expression
-
_this
public JExpr _this()
Description copied from interface:JType
An expression of the formThisType.this
. If the type is an array type, an exception is thrown.- Specified by:
_this
in interfaceJType
- Overrides:
_this
in classAbstractJType
- Returns:
- the expression
-
_super
public JExpr _super()
Description copied from interface:JType
An expression of the formThisType.super
. If the type is an array type, an exception is thrown.- Specified by:
_super
in interfaceJType
- Overrides:
_super
in classAbstractJType
- 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 interfaceJType
- Overrides:
_new
in classAbstractJType
- Returns:
- the construction call
-
_newAnon
public JAnonymousClassDef _newAnon()
Description copied from interface:JType
Construct a new anonymous subclass of this type.- Specified by:
_newAnon
in interfaceJType
- Overrides:
_newAnon
in classAbstractJType
- Returns:
- the anonymous subclass definition
-
writeDirect
void writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Specified by:
writeDirect
in classAbstractJType
- Throws:
java.io.IOException
-
-