public class ClassDescriptor extends EntityDescriptor
EntityDescriptor.Fragment
fragments, name, obfuscatedNames
Constructor and Description |
---|
ClassDescriptor(String className,
String packageName) |
Modifier and Type | Method and Description |
---|---|
void |
addField(FieldDescriptor fieldDescriptor) |
void |
addMethod(MethodDescriptor methodDescriptor) |
FieldDescriptor |
fieldFrom(JField field)
Returns a field descriptor from a JField.
|
static ClassDescriptor |
from(JDeclaredType classType)
Creates a class descriptor from a JDeclaredType.
|
FieldDescriptor |
getField(String fieldName)
Returns the field descriptor associated to the given field name.
|
Collection<FieldDescriptor> |
getFields() |
String |
getFullName()
Returns the full qualified name.
|
MethodDescriptor |
getMethod(String methodSignature)
Returns the method descriptor associated to the given original method signature.
|
Collection<MethodDescriptor> |
getMethods() |
String |
getPackageName() |
JDeclaredType |
getTypeReference() |
MethodDescriptor |
methodFrom(JMethod method,
String signature)
Returns a method descriptor from a JMethod and its original signature (prior any modifications).
|
addFragment, addObfuscatedName, getFragments, getName, getObfuscatedNames
public static ClassDescriptor from(JDeclaredType classType)
public void addField(FieldDescriptor fieldDescriptor)
public void addMethod(MethodDescriptor methodDescriptor)
public FieldDescriptor fieldFrom(JField field)
public FieldDescriptor getField(String fieldName)
public Collection<FieldDescriptor> getFields()
public String getFullName()
EntityDescriptor
getFullName
in class EntityDescriptor
public MethodDescriptor getMethod(String methodSignature)
public Collection<MethodDescriptor> getMethods()
public String getPackageName()
public JDeclaredType getTypeReference()
public MethodDescriptor methodFrom(JMethod method, String signature)
Copyright © 2018. All rights reserved.