/** * Returns all methods that are applicable to actual * parameter types represented by this ArgumentTypes object. */ LinkedList<CallableMemberDescriptor> getApplicables( List<ReflectionCallableMemberDescriptor> memberDescs, boolean varArg) { LinkedList<CallableMemberDescriptor> applicables = new LinkedList<CallableMemberDescriptor>(); for (ReflectionCallableMemberDescriptor memberDesc : memberDescs) { int difficulty = isApplicable(memberDesc, varArg); if (difficulty != CONVERSION_DIFFICULTY_IMPOSSIBLE) { if (difficulty == CONVERSION_DIFFICULTY_REFLECTION) { applicables.add(memberDesc); } else if (difficulty == CONVERSION_DIFFICULTY_FREEMARKER) { applicables.add(new SpecialConversionCallableMemberDescriptor(memberDesc)); } else { throw new BugException(); } } } return applicables; }
/** * Returns all methods that are applicable to actual * parameter types represented by this ArgumentTypes object. */ LinkedList<CallableMemberDescriptor> getApplicables( List<ReflectionCallableMemberDescriptor> memberDescs, boolean varArg) { LinkedList<CallableMemberDescriptor> applicables = new LinkedList<CallableMemberDescriptor>(); for (ReflectionCallableMemberDescriptor memberDesc : memberDescs) { int difficulty = isApplicable(memberDesc, varArg); if (difficulty != CONVERSION_DIFFICULTY_IMPOSSIBLE) { if (difficulty == CONVERSION_DIFFICULTY_REFLECTION) { applicables.add(memberDesc); } else if (difficulty == CONVERSION_DIFFICULTY_FREEMARKER) { applicables.add(new SpecialConversionCallableMemberDescriptor(memberDesc)); } else { throw new BugException(); } } } return applicables; }
/** * Returns all methods that are applicable to actual * parameter types represented by this ArgumentTypes object. */ LinkedList<CallableMemberDescriptor> getApplicables( List<ReflectionCallableMemberDescriptor> memberDescs, boolean varArg) { LinkedList<CallableMemberDescriptor> applicables = new LinkedList<CallableMemberDescriptor>(); for (ReflectionCallableMemberDescriptor memberDesc : memberDescs) { int difficulty = isApplicable(memberDesc, varArg); if (difficulty != CONVERSION_DIFFICULTY_IMPOSSIBLE) { if (difficulty == CONVERSION_DIFFICULTY_REFLECTION) { applicables.add(memberDesc); } else if (difficulty == CONVERSION_DIFFICULTY_FREEMARKER) { applicables.add(new SpecialConversionCallableMemberDescriptor(memberDesc)); } else { throw new BugException(); } } } return applicables; }