public RetainedStaticContext makeRetainedStaticContext() { return getStaticContext().makeRetainedStaticContext(); }
public RetainedStaticContext makeRetainedStaticContext() { return getStaticContext().makeRetainedStaticContext(); }
/** * Construct a RetainedStaticContext, which extracts information from this StaticContext * to provide the subset of static context information that is potentially needed * during expression evaluation * * @return a RetainedStaticContext object: either a newly created one, or one that is * reused from a previous invocation. */ public RetainedStaticContext makeRetainedStaticContext() { if (retainedStaticContext == null) { if (element.changesRetainedStaticContext() || !(element.getParent() instanceof StyleElement)) { retainedStaticContext = new RetainedStaticContext(this); } else { retainedStaticContext = ((StyleElement) element.getParent()).getStaticContext().makeRetainedStaticContext(); } } return retainedStaticContext; }
/** * Construct a RetainedStaticContext, which extracts information from this StaticContext * to provide the subset of static context information that is potentially needed * during expression evaluation * * @return a RetainedStaticContext object: either a newly created one, or one that is * reused from a previous invocation. */ public RetainedStaticContext makeRetainedStaticContext() { if (retainedStaticContext == null) { if (element.changesRetainedStaticContext() || !(element.getParent() instanceof StyleElement)) { retainedStaticContext = new RetainedStaticContext(this); } else { retainedStaticContext = ((StyleElement) element.getParent()).getStaticContext().makeRetainedStaticContext(); } } return retainedStaticContext; }
select.setRetainedStaticContext(getStaticContext().makeRetainedStaticContext());
select.setRetainedStaticContext(getStaticContext().makeRetainedStaticContext());