public abstract class MemberSignature extends Object
FieldSignature,
MethodSignature| Modifier | Constructor and Description |
|---|---|
protected |
MemberSignature(String name)
Creates a member signature, with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected StringJoiner |
buildToString() |
String |
getName()
Gets the name of the member.
|
abstract String |
toJvmsIdentifier()
Returns a JVMS-like identifier corresponding to this signature.
|
String |
toString() |
protected final String name
protected MemberSignature(String name)
name - The name of the memberpublic String getName()
public abstract String toJvmsIdentifier()
For field signatures, this will take the form
name(descriptor).
For method signatures, this will take the form
name(params)ret_type - in other terms, the name directly
concatenated with the JVMS descriptor.
protected StringJoiner buildToString()