Class ClassDescriptor
java.lang.Object
com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
com.google.gwt.core.ext.soyc.coderef.ClassDescriptor
A succinct code representation for classes.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
EntityDescriptor.Fragment
-
Field Summary
Fields inherited from class com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
fragments, name, obfuscatedNames
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(FieldDescriptor fieldDescriptor) void
addMethod
(MethodDescriptor methodDescriptor) 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.Returns the field descriptor associated to the given field name.Returns the full qualified name.Returns the method descriptor associated to the given original method signature.com.google.gwt.dev.jjs.ast.JDeclaredType
methodFrom
(com.google.gwt.dev.jjs.ast.JMethod method, String signature) Returns a method descriptor from a JMethod and its original signature (prior any modifications).Methods inherited from class com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
addFragment, addObfuscatedName, getFragments, getName, getObfuscatedNames
-
Constructor Details
-
ClassDescriptor
-
-
Method Details
-
from
Creates a class descriptor from a JDeclaredType. -
addField
-
addMethod
-
fieldFrom
Returns a field descriptor from a JField. If the field descriptor is not in the current class descriptor, it will be added. -
getField
Returns the field descriptor associated to the given field name. -
getFields
-
getFullName
Description copied from class:EntityDescriptor
Returns the full qualified name.- Specified by:
getFullName
in classEntityDescriptor
-
getMethod
Returns the method descriptor associated to the given original method signature. -
getMethods
-
getPackageName
-
getTypeReference
public com.google.gwt.dev.jjs.ast.JDeclaredType getTypeReference() -
methodFrom
Returns a method descriptor from a JMethod and its original signature (prior any modifications). If the method descriptor is not in the current class descriptor, it will be added.
-