Package de.inetsoftware.classparser
Class ConstantRef
java.lang.Object
de.inetsoftware.classparser.ConstantRef
- All Implemented Interfaces:
Member
- Direct Known Subclasses:
ConstantFieldRef
,ConstantInterfaceRef
,ConstantMethodRef
A reference to an member that is described in the constant pool of a Java class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstantRef
(ConstantClass constClass, ConstantNameAndType nameAndType) Create a new instance. -
Method Summary
-
Field Details
-
constClass
-
nameAndType
-
-
Constructor Details
-
ConstantRef
ConstantRef(ConstantClass constClass, ConstantNameAndType nameAndType) Create a new instance.- Parameters:
constClass
- the class descriptionnameAndType
- the name and type description
-
-
Method Details
-
getName
The simple name without package -
getClassName
The class name of the declaring class like "java/lang/Object".- Specified by:
getClassName
in interfaceMember
- Returns:
- the class name
-
getType
Get the type of the method. For example "(Ljava.lang.String;)I" -
getConstantClass
-