/** * */ private String getPropertyName(ITextRegionList nodeRegions) { ITextRegionList nameRegions = new TextRegionListImpl(); String name = null; while (!nodeRegions.isEmpty()) { ITextRegion region = nodeRegions.remove(0); if (region == null) { continue; } String type = region.getType(); if (type == CSSRegionContexts.CSS_DECLARATION_SEPARATOR) { CSSUtil.stripSurroundingSpace(nameRegions); name = makeString(nameRegions); break; } else { nameRegions.add(region); } } return name; }
case S_NORMAL : if (type == CSSRegionContexts.CSS_DECLARATION_VALUE_FUNCTION) { regionBuf.add(region); status = S_FUNCTION; case S_FUNCTION : if (type == CSSRegionContexts.CSS_DECLARATION_VALUE_PARENTHESIS_CLOSE) { regionBuf.add(region); value = createPrimitiveValue(regionBuf); regionBuf.clear(); regionBuf.add(region); regionBuf.add(region);
fEmbeddedContainer.getRegions().add(newToken); fEmbeddedContainer.setLength(fEmbeddedContainer.getLength() + yylength()); fEmbeddedContainer.setTextLength(fEmbeddedContainer.getTextLength() + yylength()); fEmbeddedContainer.getRegions().add(newToken); fEmbeddedContainer.setLength(fEmbeddedContainer.getLength() + yylength()); fEmbeddedContainer.setTextLength(fEmbeddedContainer.getTextLength() + yylength()); fEmbeddedContainer.getRegions().add(newToken);
newToken = fRegionFactory.createToken(internalContext, yychar - containerStart, yylength(), yylength()); fEmbeddedContainer.getRegions().add(newToken); fEmbeddedContainer.setLength(fEmbeddedContainer.getLength() + newToken.getLength() ); fEmbeddedContainer.setTextLength(fEmbeddedContainer.getTextLength() + newToken.getLength()); fEmbeddedContainer.getRegions().add(newToken); fEmbeddedContainer.setLength(fEmbeddedContainer.getLength() + newToken.getLength()); fEmbeddedContainer.setTextLength(fEmbeddedContainer.getTextLength() + newToken.getLength()); fEmbeddedContainer.getRegions().add(newToken);
container.getRegions().add(region);
container.getRegions().add(region);
container.getRegions().add(region);