List of usage examples for org.apache.commons.el ValueSuffix getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.apache.myfaces.el.ELParserHelper.java
private static void replaceSuffixes(ComplexValue complexValue) { Application application = FacesContext.getCurrentInstance().getApplication(); List suffixes = complexValue.getSuffixes(); for (int i = 0, len = suffixes.size(); i < len; i++) { ValueSuffix suffix = (ValueSuffix) suffixes.get(i); if (suffix instanceof PropertySuffix) { if (suffix instanceof MyPropertySuffix) { throw new IllegalStateException("Suffix is MyPropertySuffix and must not be"); }//from www . j a va 2s . c o m suffixes.set(i, new MyPropertySuffix((PropertySuffix) suffix, application)); } else if (suffix instanceof ArraySuffix) { if (suffix instanceof MyArraySuffix) { throw new IllegalStateException("Suffix is MyArraySuffix and must not be"); } suffixes.set(i, new MyArraySuffix((ArraySuffix) suffix, application)); } else { throw new IllegalStateException("Unknown suffix class: " + suffix.getClass().getName()); } } }