com.google.gwt.core.ext.soyc.coderef
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
public class MethodDescriptor
- extends MemberDescriptor
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodDescriptor
public MethodDescriptor(ClassDescriptor owner,
java.lang.String jsniSignature)
from
public static MethodDescriptor from(ClassDescriptor classDescriptor,
com.google.gwt.dev.jjs.ast.JMethod method,
java.lang.String signature)
- Creates a method descriptor from a JMethod with its original signature, and set its enclosing
class.
normalizeMethodSignature
public static java.lang.String normalizeMethodSignature(java.lang.String methodSignature)
addDependant
public void addDependant(MethodDescriptor methodDescriptor)
addReference
public void addReference(com.google.gwt.dev.jjs.ast.JMethod methodRef)
getDependentPointers
public int[] getDependentPointers()
- Returns the dependent list ids.
getDependentMethods
public java.util.Set<MethodDescriptor> getDependentMethods()
getJsniSignature
public java.lang.String getJsniSignature()
- Description copied from class:
MemberDescriptor
- The signature of the member.
- Specified by:
getJsniSignature
in class MemberDescriptor
- Returns:
- The member name plus its signature
getParamTypes
public java.lang.String getParamTypes()
getMethodReferences
public java.util.Set<com.google.gwt.dev.jjs.ast.JMethod> getMethodReferences()
- Returns the set of JMethods that share the same signature.
getUniqueId
public int getUniqueId()
setUniqueId
public void setUniqueId(int uniqueId)