Class ResolvedVoidType
- java.lang.Object
-
- com.github.javaparser.resolution.types.ResolvedVoidType
-
- All Implemented Interfaces:
ResolvedType
public class ResolvedVoidType extends Object implements ResolvedType
The special type void.- Author:
- Federico Tomassetti
-
-
Field Summary
Fields Modifier and Type Field Description static ResolvedType
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
describe()
boolean
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.boolean
isVoid()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.types.ResolvedType
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, isArray, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isWildcard, mention, replaceTypeVariables, replaceTypeVariables
-
-
-
-
Field Detail
-
INSTANCE
public static final ResolvedType INSTANCE
-
-
Method Detail
-
describe
public String describe()
- Specified by:
describe
in interfaceResolvedType
-
isAssignableBy
public boolean isAssignableBy(ResolvedType other)
Description copied from interface:ResolvedType
This method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableBy
in interfaceResolvedType
-
isVoid
public boolean isVoid()
- Specified by:
isVoid
in interfaceResolvedType
-
-