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, type
Fields inherited from class com.google.gwt.core.ext.soyc.coderef.EntityDescriptor
fragments, name, obfuscatedNames
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependant
(MethodDescriptor methodDescriptor) void
addReference
(com.google.gwt.dev.jjs.ast.JMethod methodRef) 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.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.int
static String
normalizeMethodSignature
(String methodSignature) void
setUniqueId
(int uniqueId) Methods inherited from class com.google.gwt.core.ext.soyc.coderef.MemberDescriptor
getEnclosingClassDescriptor, getFullName, getType
Methods 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:MemberDescriptor
The signature of the member.- Specified by:
getJsniSignature
in 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)
-