org.aspectj.org.eclipse.jdt.internal.compiler.lookup
Class Scope.Substitutor

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope.Substitutor
Direct Known Subclasses:
InferenceSubstitution
Enclosing class:
Scope

public static class Scope.Substitutor
extends java.lang.Object


Constructor Summary
Scope.Substitutor()
           
 
Method Summary
 ReferenceBinding[] substitute(Substitution substitution, ReferenceBinding[] originalTypes)
          Returns an array of types, where original types got substituted given a substitution.
 TypeBinding substitute(Substitution substitution, TypeBinding originalType)
          Returns a type, where original type was substituted using the receiver parameterized type.
 TypeBinding[] substitute(Substitution substitution, TypeBinding[] originalTypes)
          Returns an array of types, where original types got substituted given a substitution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scope.Substitutor

public Scope.Substitutor()
Method Detail

substitute

public ReferenceBinding[] substitute(Substitution substitution,
                                     ReferenceBinding[] originalTypes)
Returns an array of types, where original types got substituted given a substitution. Only allocate an array if anything is different.


substitute

public TypeBinding substitute(Substitution substitution,
                              TypeBinding originalType)
Returns a type, where original type was substituted using the receiver parameterized type. In raw mode (see Substitution.isRawSubstitution()), all parameterized types are converted to raw types. Cf. 4.8: "The type of a constructor (8.8), instance method (8.4, 9.4), or non-static field (8.3) M of a raw type C that is not inherited from its superclasses or superinterfaces is the raw type that corresponds to the erasure of its type in the generic declaration corresponding to C."


substitute

public TypeBinding[] substitute(Substitution substitution,
                                TypeBinding[] originalTypes)
Returns an array of types, where original types got substituted given a substitution. Only allocate an array if anything is different.