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