Examples of FastStack


Examples of org.pentaho.reporting.libraries.base.util.FastStack

    {
      throw new NullPointerException();
    }

    this.contentGenerator = contentGenerator;
    this.processStack = new FastStack();
    this.metaData = metaData;
    this.xmlWriter = xmlWriter;
    this.styleManager = styleManager;
    this.styleBuilder = new StyleBuilder();
    this.characterEntityParser = HtmlCharacterEntities.getEntityParser();
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

   */
  public DefaultOutputFunction()
  {
    this.pagebreakHandler = new DefaultLayoutPagebreakHandler();
    this.inlineSubreports = new ArrayList<InlineSubreportMarker>();
    this.outputHandlers = new FastStack();
    this.crosstabLayouts = new FastStack();
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

  public RTFTextExtractor(final RTFOutputProcessorMetaData metaData)
  {
    super(metaData);
    this.metaData = metaData;
    this.handleImages = metaData.isFeatureSupported(RTFOutputProcessorMetaData.IMAGES_ENABLED);
    context = new FastStack(50);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

  /**
   */
  public MajorAxisParagraphBreakState()
  {
    this.contexts = new FastStack(50);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

  private FastStack groupStarts;

  protected DefaultGroupingState()
  {
    this.currentGroup = -1;
    this.groupStarts = new FastStack();
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

      {
        final CrosstabGroup crosstabGroup = (CrosstabGroup) group;
        // yeay! we encountered a crosstab.
        if (processingStack == null)
        {
          processingStack = new FastStack();
        }
        final String[] columnSet = computeColumns(crosstabGroup);
        final ReportStateKey processKey = state.getProcessKey();
        final DataSchema dataSchema = getRuntime().getDataSchema();
        final DataAttributes tableAttributes = dataSchema.getTableAttributes();
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

    final char[] chars = value.toCharArray();
    StringBuffer result = new StringBuffer(chars.length);

    boolean haveEscape = false;
    int state = PropertyLookupParser.EXPECT_DOLLAR;
    final FastStack stack = new FastStack();

    for (int i = 0; i < chars.length; i++)
    {
      final char c = chars[i];

      if (haveEscape)
      {
        haveEscape = false;
        if (state == PropertyLookupParser.EXPECT_CLOSE_BRACE ||
            escapeMode == ESCAPE_MODE_ALL)
        {
          result.append(c);
        }
        else
        {
          if (c == openingBraceChar || c == closingBraceChar || c == escapeChar || c == markerChar)
          {
            result.append(c);
          }
          else
          {
            result.append(escapeChar);
            result.append(c);
          }
        }
        continue;
      }

      if ((state == PropertyLookupParser.EXPECT_DOLLAR || state == PropertyLookupParser.EXPECT_CLOSE_BRACE)
          && c == markerChar)
      {
        state = PropertyLookupParser.EXPECT_OPEN_BRACE;
        continue;
      }

      if (state == PropertyLookupParser.EXPECT_CLOSE_BRACE && c == closingBraceChar)
      {
        final String columnName = result.toString();
        result = (StringBuffer) stack.pop();
        handleVariableLookup(result, parameters, columnName);

        if (stack.isEmpty())
        {
          state = PropertyLookupParser.EXPECT_DOLLAR;
        }
        else
        {
          state = PropertyLookupParser.EXPECT_CLOSE_BRACE;
        }
        continue;
      }

      if (state == PropertyLookupParser.EXPECT_OPEN_BRACE)
      {
        if (c == openingBraceChar)
        {
          state = PropertyLookupParser.EXPECT_CLOSE_BRACE;
          stack.push(result);
          result = new StringBuffer(100);
          continue;
        }

        result.append(markerChar);
        if (stack.isEmpty())
        {
          state = PropertyLookupParser.EXPECT_DOLLAR;
        }
        else
        {
          state = PropertyLookupParser.EXPECT_CLOSE_BRACE;
        }

        // continue with adding the current char ..
      }

      if (c == escapeChar && escapeMode != ESCAPE_MODE_NONE)
      {
        haveEscape = true;
        continue;
      }

      result.append(c);
    }

    if (state != PropertyLookupParser.EXPECT_DOLLAR)
    {
      while (stack.isEmpty() == false)
      {
        final String columnName = result.toString();
        result = (StringBuffer) stack.pop();
        result.append(markerChar);
        if (state != PropertyLookupParser.EXPECT_OPEN_BRACE)
        {
          result.append(openingBraceChar);
          result.append(columnName);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

    this.applyAutoCommitStep = new ApplyAutoCommitStep();
    this.applyCommitStep = new ApplyCommitStep();
    this.rollbackStep = new RollbackStep();
    this.sectionBoxes = new SectionRenderBox[5];

    this.groupStack = new FastStack(50);

    bandWithKeepTogetherStyle = new SimpleStyleSheet(new SectionKeepTogetherStyleSheet(true));
    bandWithoutKeepTogetherStyle = new SimpleStyleSheet(new SectionKeepTogetherStyleSheet(false));

    final boolean paddingsDisabled = metaData.isFeatureSupported(OutputProcessorFeature.DISABLE_PADDING);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

    {
      parameterContext.close();
    }

    this.processLevels = new HashSet();
    this.groupStarts = new FastStack();
    this.errorHandler = IgnoreEverythingReportErrorHandler.INSTANCE;
    this.advanceHandler = BeginReportHandler.HANDLER;
    this.parentState = null;
    this.currentPage = ReportState.BEFORE_FIRST_PAGE;
    this.currentSubReport = -1;
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.FastStack

    if (parentState == null)
    {
      throw new NullPointerException();
    }

    this.groupStarts = new FastStack();
    this.parentState = parentState;
    this.parentSubReportState = parentState;
    this.advanceHandler = BeginReportHandler.HANDLER;
    this.errorHandler = parentState.errorHandler;
    this.functionStorage = parentState.functionStorage;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.