public LocationValueExpression apply(int newCCLevel) { if(this.ccLevel == newCCLevel) { return this; } else { return new LocationValueExpression(this.location, this.delegate, newCCLevel); } }
@SuppressWarnings("unchecked") private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression, ValueExpression originalValueExpression) { if (originalValueExpression instanceof LocationValueExpression) { return new LocationMethodExpression( ((LocationValueExpression) originalValueExpression).getLocation(), reWrapMethodExpression(createdMethodExpression, ((LocationValueExpression) originalValueExpression).getWrapped()), ((LocationValueExpression) originalValueExpression).getCCLevel()); } else if (originalValueExpression instanceof FacesWrapper && ((FacesWrapper) originalValueExpression).getWrapped() instanceof ValueExpression) { return reWrapMethodExpression(createdMethodExpression, (ValueExpression) ((FacesWrapper) originalValueExpression).getWrapped()); } else { return createdMethodExpression; } }
if (location != null) return ((LocationValueExpression)localCachedExpression[1]).apply( actx.getFaceletCompositionContext().getCompositeComponentLevel(), location); return ((LocationValueExpression)localCachedExpression[1]).apply( actx.getFaceletCompositionContext().getCompositeComponentLevel()); if (location != null) return ((LocationValueExpression)localCachedExpression[1]).apply( actx.getFaceletCompositionContext().getCompositeComponentLevel(), location); return ((LocationValueExpression)localCachedExpression[1]).apply( actx.getFaceletCompositionContext().getCompositeComponentLevel()); valueExpression = new LocationValueExpression(currentLocation, valueExpression, actx.getFaceletCompositionContext().getCompositeComponentLevel());
@SuppressWarnings("unchecked") private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression, ValueExpression originalValueExpression) { if (originalValueExpression instanceof LocationValueExpression) { return new LocationMethodExpression( ((LocationValueExpression)originalValueExpression).getLocation(), reWrapMethodExpression(createdMethodExpression, ((LocationValueExpression)originalValueExpression).getWrapped())); } else if (originalValueExpression instanceof FacesWrapper && ((FacesWrapper)originalValueExpression).getWrapped() instanceof ValueExpression) { return reWrapMethodExpression(createdMethodExpression, (ValueExpression) ((FacesWrapper)originalValueExpression).getWrapped()); } else { return createdMethodExpression; } }
if (location != null) return new ELTextVariable(((LocationValueExpression)cached.ve).apply( actx.getFaceletCompositionContext().getCompositeComponentLevel(), location)); return new ELTextVariable(((LocationValueExpression)cached.ve).apply( actx.getFaceletCompositionContext().getCompositeComponentLevel())); if (location != null) valueExpression = new LocationValueExpression(location, valueExpression, actx.getFaceletCompositionContext().getCompositeComponentLevel());
@SuppressWarnings("unchecked") private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression, ValueExpression originalValueExpression) { if (originalValueExpression instanceof LocationValueExpression) { return new LocationMethodExpression( ((LocationValueExpression)originalValueExpression).getLocation(), reWrapMethodExpression(createdMethodExpression, ((LocationValueExpression)originalValueExpression).getWrapped())); } else if (originalValueExpression instanceof FacesWrapper && ((FacesWrapper)originalValueExpression).getWrapped() instanceof ValueExpression) { return reWrapMethodExpression(createdMethodExpression, (ValueExpression) ((FacesWrapper)originalValueExpression).getWrapped()); } else { return createdMethodExpression; } }
public LocationValueExpression apply(int newCCLevel, Location newLocation) { if(this.ccLevel == newCCLevel && this.location.getPath().equals(newLocation.getPath())) { return this; } else { return new LocationValueExpression(newLocation, this.delegate, newCCLevel); } }
valueExpression = new LocationValueExpression(getLocation(), valueExpression);
valueExpression = new LocationValueExpression(getLocation(), valueExpression);