/** @return the body of the tag */ public Script getBody() { if (! hasTrimmed) { hasTrimmed = true; if (isTrim()) { trimBody(); } } return body; }
/** @return the body of the tag */ public Script getBody() { if (! hasTrimmed) { hasTrimmed = true; if (isTrim()) { trimBody(); } } return body; }
public boolean isTrim() { if ( this.shouldTrim == null ) { Tag parent = getParent(); if ( parent == null ) { return true; } else { if ( parent instanceof TagSupport ) { TagSupport parentSupport = (TagSupport) parent; this.shouldTrim = ( parentSupport.isTrim() ? Boolean.TRUE : Boolean.FALSE ); } else { this.shouldTrim = Boolean.TRUE; } } } return this.shouldTrim.booleanValue(); }
public boolean isTrim() { if ( this.shouldTrim == null ) { Tag parent = getParent(); if ( parent == null ) { return true; } else { if ( parent instanceof TagSupport ) { TagSupport parentSupport = (TagSupport) parent; this.shouldTrim = ( parentSupport.isTrim() ? Boolean.TRUE : Boolean.FALSE ); } else { this.shouldTrim = Boolean.TRUE; } } } return this.shouldTrim.booleanValue(); }