Uses of Class
edu.rice.cs.javalanglevels.MethodData

Packages that use MethodData
edu.rice.cs.javalanglevels   
 

Uses of MethodData in edu.rice.cs.javalanglevels
 

Methods in edu.rice.cs.javalanglevels that return MethodData
protected  MethodData TypeChecker._lookupMethod(String methodName, SymbolData enclosingSD, InstanceData[] arguments, JExpression jexpr, String errorMsg, boolean isConstructor, SymbolData thisSD)
          Finds which SymbolData this method is in, beginning at this SymbolData and recursively visiting super classes.
protected  MethodData TypeChecker._lookupMethodHelper(String methodName, SymbolData enclosingSD, InstanceData[] arguments, JExpression jexpr, boolean isConstructor, SymbolData thisSD)
          Pass a default value
protected  MethodData TypeChecker._lookupMethodHelper(String methodName, SymbolData enclosingSD, InstanceData[] arguments, JExpression jexpr, boolean isConstructor, SymbolData thisSD, LinkedList<MethodData> matchingMethods)
          Finds which SymbolData this method is in, beginning at this SymbolData and recursively visiting super classes.
protected  MethodData LanguageLevelVisitor.createMethodData(MethodDef that, SymbolData sd)
          Creates a MethodData corresponding to the MethodDef within the context of the SymbolData sd.
 MethodData SymbolData.getMethod(String name, TypeData[] paramTypes)
          Returns the method with the given name and param types.
abstract  MethodData BodyData.getMethodData()
          Will return this, if it is a method data, or the enclosing method data if this is a block data.
 MethodData MethodData.getMethodData()
           
 MethodData BlockData.getMethodData()
          Get the outer method data of this block.
static MethodData MethodData.make(String name, ModifiersAndVisibility modifiersAndVisibility, TypeParameter[] typeParameters, SymbolData returnType, VariableData[] params, String[] thrown, SymbolData enclosingClass, JExpression jexpr)
          Factory methods used for debugging purposes among other things.
static MethodData MethodData.make(String name, VariableData[] params)
           
static MethodData SymbolData.repeatedSignature(LinkedList<MethodData> listOfMethods, MethodData method)
          Calls repeatedSignature with fromClassFile set to false by default.
static MethodData SymbolData.repeatedSignature(LinkedList<MethodData> listOfMethods, MethodData method, boolean fromClassFile)
          Checks if two methods in this SymbolData have the same name and parameters.
 

Methods in edu.rice.cs.javalanglevels that return types with arguments of type MethodData
protected  Pair<LinkedList<MethodData>,LinkedList<MethodData>> TypeChecker._getMatchingMethods(String methodName, SymbolData enclosingSD, InstanceData[] arguments, JExpression jexpr, boolean isConstructor, SymbolData thisSD)
          Finds and returns all matching methods.
protected  Pair<LinkedList<MethodData>,LinkedList<MethodData>> TypeChecker._getMatchingMethods(String methodName, SymbolData enclosingSD, InstanceData[] arguments, JExpression jexpr, boolean isConstructor, SymbolData thisSD)
          Finds and returns all matching methods.
 LinkedList<MethodData> SymbolData.getMethods()
           
 

Methods in edu.rice.cs.javalanglevels with parameters of type MethodData
protected static void LanguageLevelVisitor.addGeneratedMethod(SymbolData sd, MethodData md)
          If the method being generated already exists in the SymbolData, throw an error, because generated methods cannot be overwritten.
 void SymbolData.addMethod(MethodData method)
          When adding a method, we must check that the method's signature (name and parameters) does not match that of any other method in the same class.
 void SymbolData.addMethod(MethodData method, boolean isAugmentedCode)
          This version of addMethod is called whenever the method corresponds to one that is auto-generated (toString, equals, hashCode, etc.) and is necessary because we need to check if the user defined a method with the same signature and, if so, highlight the user method instead of trying to highlight the auto-generated method (which doesn't appear in the raw version of the source anyway).
 void SymbolData.addMethod(MethodData method, boolean isAugmentedCode, boolean fromClassFile)
          Important to know if this is called from a class file since JSR14 allows methods to have the same name and parameters with different return types for bridge methods.
protected static boolean SymbolData.checkDifferentReturnTypes(MethodData md, SymbolData sd, boolean addError, JavaVersion version)
          Called to make sure that no method has the same name and parameters as a method it inherits while having different return types.
protected static boolean SymbolData.checkDifferentReturnTypes(MethodData md, SymbolData sd, JavaVersion version)
          Call checkDifferentReturnTypes with addError set to true by default
protected  void SpecialTypeChecker.handleMethodInvocation(MethodData md, JExpression jexpr)
          TODO: Move this code to where it is needed? Do any extra processing of this MethodInvocation, based on what level it is found at.
static MethodData SymbolData.repeatedSignature(LinkedList<MethodData> listOfMethods, MethodData method)
          Calls repeatedSignature with fromClassFile set to false by default.
static MethodData SymbolData.repeatedSignature(LinkedList<MethodData> listOfMethods, MethodData method, boolean fromClassFile)
          Checks if two methods in this SymbolData have the same name and parameters.
protected static void Augmentor.writeSafeEquals(String className, SymbolData sd, int baseIndent, String valueEqualsName, MethodData[] accessors)
          Helper to writeEquals; writes an equals that handles infinitely-recursive data structures.
protected static void Augmentor.writeSafeHashCode(String className, SymbolData sd, int baseIndent, boolean waitForVarDef, String valueHashCodeName, MethodData[] accessors)
          Helper to writeHashCode; writes a hashCode that handles infinitely-recursive data structures.
protected static void Augmentor.writeSafeToString(SymbolData sd, int baseIndent, String valueToStringName, MethodData[] accessors)
          Helper to writeToString; writes a toString that handles infinitely-recursive data structures.
protected static void Augmentor.writeSimpleEquals(String className, SymbolData sd, int baseIndent, String valueEqualsName, MethodData[] accessors)
          Helper to writeEquals; writes a simple equals that does not handle infinitely-recursive data structures.
protected static void Augmentor.writeSimpleHashCode(String className, SymbolData sd, int baseIndent, boolean waitForVarDef, String valueHashCodeName, MethodData[] accessors)
          Helper to writeHashCode; writes a simple hashCode that does not handle infinitely-recursive data structures.
protected static void Augmentor.writeSimpleToString(SymbolData sd, int baseIndent, String valueToStringName, MethodData[] accessors)
          Helper to writeToString; writes a short toString that does not handle infinitely-recursive data structures.
 

Method parameters in edu.rice.cs.javalanglevels with type arguments of type MethodData
protected  MethodData TypeChecker._lookupMethodHelper(String methodName, SymbolData enclosingSD, InstanceData[] arguments, JExpression jexpr, boolean isConstructor, SymbolData thisSD, LinkedList<MethodData> matchingMethods)
          Finds which SymbolData this method is in, beginning at this SymbolData and recursively visiting super classes.
static MethodData SymbolData.repeatedSignature(LinkedList<MethodData> listOfMethods, MethodData method)
          Calls repeatedSignature with fromClassFile set to false by default.
static MethodData SymbolData.repeatedSignature(LinkedList<MethodData> listOfMethods, MethodData method, boolean fromClassFile)
          Checks if two methods in this SymbolData have the same name and parameters.
 void SymbolData.setMethods(LinkedList<MethodData> methods)
          Sets the list of methods to the specified one