private final Target getTarget(EvaluationContext ctx) throws ELException { // evaluate expr-a to value-a Object base = this.children[0].getValue(ctx); // if our base is null (we know there are more properites to evaluate) if (base == null) { throw new PropertyNotFoundException(MessageFactory.get( "error.unreachable.base", this.children[0].getImage())); } // set up our start/end int propCount = this.jjtGetNumChildren() - 1; int i = 1; while (base != null && i < propCount) { base = ((ValueSuffixNode) this.children[i]).getTarget(base, ctx); i++; if (base == null) { throw new PropertyNotFoundException(MessageFactory.get( "error.unreachable.base", this.children[0].getImage())); } } Target t = new Target(); t.base = base; t.node = (ValueSuffixNode) this.children[propCount]; return t; }
private final Target getTarget(EvaluationContext ctx) throws ELException { // evaluate expr-a to value-a Object base = this.children[0].getValue(ctx); // if our base is null (we know there are more properites to evaluate) if (base == null) { throw new PropertyNotFoundException(MessageFactory.get( "error.unreachable.base", this.children[0].getImage())); } // set up our start/end int propCount = this.jjtGetNumChildren() - 1; int i = 1; while (base != null && i < propCount) { base = ((ValueSuffixNode) this.children[i]).getTarget(base, ctx); i++; if (base == null) { throw new PropertyNotFoundException(MessageFactory.get( "error.unreachable.base", this.children[0].getImage())); } } Target t = new Target(); t.base = base; t.node = (ValueSuffixNode) this.children[propCount]; return t; }
private final Target getTarget(EvaluationContext ctx) throws ELException { // evaluate expr-a to value-a Object base = this.children[0].getValue(ctx); // if our base is null (we know there are more properites to evaluate) if (base == null) { throw new PropertyNotFoundException(MessageFactory.get( "error.unreachable.base", this.children[0].getImage())); } // set up our start/end int propCount = this.jjtGetNumChildren() - 1; int i = 1; while (base != null && i < propCount) { base = ((ValueSuffixNode) this.children[i]).getTarget(base, ctx); i++; if (base == null) { throw new PropertyNotFoundException(MessageFactory.get( "error.unreachable.base", this.children[0].getImage())); } } Target t = new Target(); t.base = base; t.node = (ValueSuffixNode) this.children[propCount]; return t; }