Class MethodDescriptor
java.lang.Object
com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
com.google.gwt.core.ext.soyc.coderef.MemberDescriptor
com.google.gwt.core.ext.soyc.coderef.MethodDescriptor
Represents a method. Its goal is to keep as minimal information as possible and track
dependencies between them. The signature is in jsni format, including the return type and the
parameter types.
-
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.MemberDescriptor
enclosingClassDescriptor, typeFields inherited from class com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
fragments, name, obfuscatedNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependant(MethodDescriptor methodDescriptor) voidaddReference(com.google.gwt.dev.jjs.ast.JMethod methodRef) static MethodDescriptorfrom(ClassDescriptor classDescriptor, com.google.gwt.dev.jjs.ast.JMethod method, String signature) Creates a method descriptor from a JMethod with its original signature, and set its enclosing class.int[]Returns the dependent list ids.The signature of the member.Set<com.google.gwt.dev.jjs.ast.JMethod> Returns the set of JMethods that share the same signature.intstatic StringnormalizeMethodSignature(String methodSignature) voidsetUniqueId(int uniqueId) Methods inherited from class com.google.gwt.core.ext.soyc.coderef.MemberDescriptor
getEnclosingClassDescriptor, getFullName, getTypeMethods inherited from class com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
addFragment, addObfuscatedName, getFragments, getName, getObfuscatedNames
-
Constructor Details
-
MethodDescriptor
-
-
Method Details
-
from
public static MethodDescriptor from(ClassDescriptor classDescriptor, com.google.gwt.dev.jjs.ast.JMethod method, String signature) Creates a method descriptor from a JMethod with its original signature, and set its enclosing class. -
normalizeMethodSignature
-
addDependant
-
addReference
public void addReference(com.google.gwt.dev.jjs.ast.JMethod methodRef) -
getDependentPointers
public int[] getDependentPointers()Returns the dependent list ids. -
getDependentMethods
-
getJsniSignature
Description copied from class:MemberDescriptorThe signature of the member.- Specified by:
getJsniSignaturein classMemberDescriptor- Returns:
- The member name plus its signature
-
getParamTypes
-
getMethodReferences
Returns the set of JMethods that share the same signature. -
getUniqueId
public int getUniqueId() -
setUniqueId
public void setUniqueId(int uniqueId)
-