Class JClassType
Constructors
Methods
Constructor Detail
JClassType
Parameters
- oracle
-
- cup
-
- declaringPackage
-
- enclosingType
-
- name
-
- declStart
-
- declEnd
-
- bodyStart
-
- bodyEnd
-
- isInterface
-
Method Detail
addImplementedInterface
public void
addImplementedInterface(
JClassType intf)
Parameters
- intf
-
addMetaData
Adds additional metadata.
Parameters
- tagName
-
- values
-
addModifierBits
public void addModifierBits(int bits)
Parameters
- bits
-
findConstructor
Parameters
- paramTypes
-
findField
Parameters
- name
-
findMethod
Parameters
- name
-
- paramTypes
-
findNestedType
Parameters
- typeName
-
getBodyEnd
public int getBodyEnd()
getBodyStart
public int getBodyStart()
getCompilationUnit
getConstructor
Parameters
- paramTypes
-
getConstructors
getEnclosingType
getField
Parameters
- name
-
getFields
getImplementedInterfaces
getJNISignature
public abstract
String getJNISignature()
getMetaData
Gets each list of metadata for the specified tag name.
Parameters
- tagName
-
getMetaDataTags
Gets the name of available metadata tags.
getMethod
Parameters
- name
-
- paramTypes
-
getMethods
getModifierBits
protected int getModifierBits()
getName
getNestedType
Parameters
- typeName
-
getNestedTypes
getOracle
getOverloads
Parameters
- name
-
getPackage
getQualifiedSourceName
public abstract
String getQualifiedSourceName()
getSimpleSourceName
public abstract
String getSimpleSourceName()
getSubtypes
getSuperclass
getTypeHash
isAbstract
public boolean isAbstract()
isArray
isAssignableTo
public boolean
isAssignableTo(
JClassType possibleSupertype)
Parameters
- possibleSupertype
-
isClass
isDefaultInstantiable
public boolean isDefaultInstantiable()
Determines if the class can be constructed using a simple
new
operation. Specifically, the class must
- be a class rather than an interface,
- have either no constructors or a parameterless
public
constructor, and
- be a top-level class or a static nested class.
Return Value
true
if the type is default instantiable, or
false
otherwise
isInterface
isParameterized
isPrimitive
isPrivate
public boolean isPrivate()
isProtected
public boolean isProtected()
isPublic
public boolean isPublic()
isStatic
public boolean isStatic()
setSuperclass
Parameters
- type
-
toString