Class PatchedPolymorphicDispatcher<RT>


  • public class PatchedPolymorphicDispatcher<RT>
    extends org.eclipse.xtext.util.PolymorphicDispatcher<RT>
    Temporary patched version: https://github.com/LorenzoBettini/xsemantics/issues/82 https://github.com/eclipse/xtext-core/issues/238
    Author:
    Lorenzo Bettini
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.util.PolymorphicDispatcher

        org.eclipse.xtext.util.PolymorphicDispatcher.DefaultErrorHandler<RT extends java.lang.Object>, org.eclipse.xtext.util.PolymorphicDispatcher.ErrorHandler<P extends java.lang.Object>, org.eclipse.xtext.util.PolymorphicDispatcher.MethodDesc, org.eclipse.xtext.util.PolymorphicDispatcher.MethodNameFilter, org.eclipse.xtext.util.PolymorphicDispatcher.NullErrorHandler<RT extends java.lang.Object>, org.eclipse.xtext.util.PolymorphicDispatcher.Predicates, org.eclipse.xtext.util.PolymorphicDispatcher.WarningErrorHandler<RT extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      PatchedPolymorphicDispatcher​(java.util.List<? extends java.lang.Object> targets, com.google.common.base.Predicate<java.lang.reflect.Method> methodFilter)  
      PatchedPolymorphicDispatcher​(java.util.List<? extends java.lang.Object> targets, com.google.common.base.Predicate<java.lang.reflect.Method> methodFilter, org.eclipse.xtext.util.PolymorphicDispatcher.ErrorHandler<RT> handler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int compare​(org.eclipse.xtext.util.PolymorphicDispatcher.MethodDesc o1, org.eclipse.xtext.util.PolymorphicDispatcher.MethodDesc o2)  
      RT invoke​(java.lang.Object... params)  
      • Methods inherited from class org.eclipse.xtext.util.PolymorphicDispatcher

        createForSingleTarget, createForSingleTarget, createForSingleTarget, createForVarTarget, createMethodDesc, getDefaultClass, handleAmbigousMethods, handleNoSuchMethod
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatchedPolymorphicDispatcher

        public PatchedPolymorphicDispatcher​(java.util.List<? extends java.lang.Object> targets,
                                            com.google.common.base.Predicate<java.lang.reflect.Method> methodFilter)
      • PatchedPolymorphicDispatcher

        public PatchedPolymorphicDispatcher​(java.util.List<? extends java.lang.Object> targets,
                                            com.google.common.base.Predicate<java.lang.reflect.Method> methodFilter,
                                            org.eclipse.xtext.util.PolymorphicDispatcher.ErrorHandler<RT> handler)
    • Method Detail

      • compare

        protected int compare​(org.eclipse.xtext.util.PolymorphicDispatcher.MethodDesc o1,
                              org.eclipse.xtext.util.PolymorphicDispatcher.MethodDesc o2)
        Overrides:
        compare in class org.eclipse.xtext.util.PolymorphicDispatcher<RT>
      • invoke

        public RT invoke​(java.lang.Object... params)
        Overrides:
        invoke in class org.eclipse.xtext.util.PolymorphicDispatcher<RT>