public class RawClass_c extends JL5ClassType_c implements RawClass
ClassType.Kinddecl, memberCacheposition, ts| Constructor and Description |
|---|
RawClass_c(JL5ParsedClassType t,
Position pos) |
| Modifier and Type | Method and Description |
|---|---|
AnnotationTypeElemInstance |
annotationElemNamed(java.lang.String name) |
java.util.List<AnnotationTypeElemInstance> |
annotationElems() |
Annotations |
annotations()
Annotations on the declaration of this type.
|
JL5ParsedClassType |
base()
The JL5ParsedClassType of which this is the raw version.
|
java.util.List<? extends ConstructorInstance> |
constructors()
The class's constructors.
|
boolean |
descendsFromImpl(Type ancestor)
Return true if this type descends from
ancestor. |
java.util.List<EnumInstance> |
enumConstants() |
boolean |
equalsImpl(TypeObject t)
Default implementation is pointer equality.
|
JL5SubstClassType |
erased()
Return the JL5SubstClassType erased version of the raw class.
|
java.util.List<? extends FieldInstance> |
fields()
Returns a list of fields declared in this type.
|
Flags |
flags()
Get the class's flags.
|
int |
hashCode() |
boolean |
inStaticContext()
Return true if the class declaration occurs in a static context.
|
java.util.List<? extends ReferenceType> |
interfaces()
Returns a list of all the type's interfaces.
|
boolean |
isRawClass()
Is this class a Raw Class? See JLS 3rd ed., 4.8
|
Job |
job() |
ClassType.Kind |
kind()
Get the class's kind: top-level, member, local, or anonymous.
|
java.util.List<? extends ClassType> |
memberClasses()
The class's member classes.
|
java.util.List<? extends MethodInstance> |
methods()
Returns a list of methods declared in this type.
|
java.lang.String |
name()
Get the short name of the class, if possible.
|
ClassType |
outer()
The class's outer class, or null if a top-level class.
|
Package |
package_()
Get the class's package.
|
void |
setContainer(ReferenceType container)
Destructively set the member's container.
|
void |
setFlags(Flags flags)
Destructively set the member's flags.
|
java.util.Set<? extends Type> |
superclasses()
All direct superclasses of the class.
|
Type |
superType()
Returns the supertype of this type.
|
java.lang.String |
translateAsReceiver(Resolver c)
Translate the type as it should be if it were the receiver
of a field or method call.
|
boolean |
typeEqualsImpl(Type t)
Return true if this type is equivalent to t.
|
enumConstantNamed, isCastValidImpl, isImplicitCastValidChainImpl, isImplicitCastValidImpl, translatecontainer, copy, declaration, fieldNamed, fullName, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isCanonical, isClass, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isThrowable, isTopLevel, isUncheckedException, memberClassNamed, members, print, resolver, setDeclaration, toClass, toStringhasMethod, hasMethodImpl, isReference, methods, methodsNamed, toReferencearrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isChar, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPackage, isPrimitive, isShort, isSubtype, isSubtypeImpl, isType, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toNull, toPackage, toPrimitive, toType, typeEqualsequals, position, typeSystemclone, finalize, getClass, notify, notifyAll, wait, wait, waitenumConstantNamed, isImplicitCastValidChainImplfieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, memberClassNamed, resolverhasMethod, hasMethodImpl, members, methods, methodsNamedarrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isCastValidImpl, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isImplicitCastValidImpl, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, print, toArray, toClass, toNull, toPrimitive, toReference, toString, translate, typeEqualsisCanonical, position, typeSystemcontainerdeclaration, setDeclarationpublic RawClass_c(JL5ParsedClassType t, Position pos)
public boolean isRawClass()
JL5ClassTypeisRawClass in interface JL5ClassTypepublic JL5ParsedClassType base()
RawClasspublic JL5SubstClassType erased()
RawClasspublic java.util.List<EnumInstance> enumConstants()
enumConstants in interface JL5ClassTypeenumConstants in class JL5ClassType_cpublic Job job()
job in class ClassType_cpublic ClassType.Kind kind()
ClassTypekind in interface ClassTypekind in class ClassType_cpublic ClassType outer()
ClassTypeouter in interface ClassTypeouter in class ClassType_cpublic java.lang.String name()
ClassType_cname in interface Namedname in class ClassType_cpublic Package package_()
ClassType_cpackage_ in interface Importablepackage_ in class ClassType_cpublic Flags flags()
ClassType_cflags in interface MemberInstanceflags in class ClassType_cpublic java.util.List<? extends ConstructorInstance> constructors()
ClassTypeConstructorInstance.constructors in interface ClassTypeconstructors in class ClassType_cConstructorInstancepublic java.util.List<? extends ClassType> memberClasses()
ClassTypeClassType.memberClasses in interface ClassTypememberClasses in class ClassType_cClassTypepublic java.util.List<? extends MethodInstance> methods()
ReferenceTypemethods in interface ReferenceTypemethods in class ClassType_cMethodInstance.MethodInstancepublic java.util.List<? extends FieldInstance> fields()
ReferenceTypefields in interface ReferenceTypefields in class ClassType_cFieldInstance.FieldInstancepublic java.util.List<? extends ReferenceType> interfaces()
ReferenceTypeinterfaces in interface ReferenceTypeinterfaces in class ClassType_cType.Typepublic Type superType()
ReferenceTypesuperType in interface ReferenceTypesuperType in class ClassType_cpublic java.util.Set<? extends Type> superclasses()
JL5ClassTypesuperclasses in interface JL5ClassTypepublic boolean equalsImpl(TypeObject t)
TypeObject_cequalsImpl in interface TypeObjectequalsImpl in class TypeObject_cTypeObject_c.equalsImpl(TypeObject),
Object.hashCode()public boolean typeEqualsImpl(Type t)
TypetypeEqualsImpl in interface TypetypeEqualsImpl in class Type_ct - Type to compare topublic int hashCode()
hashCode in class TypeObject_cpublic java.lang.String translateAsReceiver(Resolver c)
JL5ClassTypetranslateAsReceiver in interface JL5ClassTypepublic boolean descendsFromImpl(Type ancestor)
Typeancestor.descendsFromImpl in interface TypedescendsFromImpl in class ClassType_cpublic boolean inStaticContext()
ClassTypeinStaticContext in interface ClassTypepublic void setFlags(Flags flags)
MemberInstancesetFlags in interface MemberInstanceflags - the flags to setpublic void setContainer(ReferenceType container)
MemberInstancesetContainer in interface MemberInstancecontainer - the container to setpublic AnnotationTypeElemInstance annotationElemNamed(java.lang.String name)
annotationElemNamed in interface JL5ClassTypepublic java.util.List<AnnotationTypeElemInstance> annotationElems()
annotationElems in interface JL5ClassTypepublic Annotations annotations()
JL5ClassTypeannotations in interface JL5ClassType