Package com.google.gwt.thirdparty.common.css

Examples of com.google.gwt.thirdparty.common.css.SourceCodeLocation


    ImageOptions options = imageMethod.getAnnotation(ImageOptions.class);
    RepeatStyle repeatStyle = options != null ? options.repeatStyle() : RepeatStyle.None;

    Builder<CssDeclarationNode> listBuilder = ImmutableList.builder();
    SourceCodeLocation sourceCodeLocation = declaration.getSourceCodeLocation();

    String repeatText;
    switch (repeatStyle) {
      case None:
        repeatText = " no-repeat";
View Full Code Here


  @Override
  public List<CssValueNode> getCallResultNodes(List<CssValueNode> args, ErrorManager errorManager)
      throws GssFunctionException {
    CssValueNode functionToEval = args.get(0);

    SourceCodeLocation sourceCodeLocation = extractSourceCodeLocation(functionToEval);

    CssJavaExpressionNode result = new CssJavaExpressionNode(functionToEval.getValue(),
        sourceCodeLocation);

    return ImmutableList.of((CssValueNode) result);
View Full Code Here

  @Override
  public List<CssValueNode> getCallResultNodes(List<CssValueNode> cssValueNodes,
      ErrorManager errorManager) throws GssFunctionException {
    CssValueNode functionToEval = cssValueNodes.get(0);
    String value = functionToEval.getValue();
    SourceCodeLocation location = functionToEval.getSourceCodeLocation();

    String javaExpression = buildJavaExpression(value, location, errorManager);

    CssFunctionNode urlNode = buildUrlNode(javaExpression, location);
View Full Code Here

    @Override
    public void report(GssError error) {
      String fileName = "";
      String location = "";
      SourceCodeLocation codeLocation = error.getLocation();

      if (codeLocation != null) {
        fileName = codeLocation.getSourceCode().getFileName();
        location = "[line: " + codeLocation.getBeginLineNumber() + " column: " + codeLocation
            .getBeginIndexInLine() + "]";
      }

      logger.log(Type.ERROR, "Error in " + fileName + location + ": " + error.getMessage());
      hasErrors = true;
View Full Code Here

    for (String arg: argumentValue) {
      CssValueNode input = mock(CssValueNode.class);
      when(input.getValue()).thenReturn(arg);

      SourceCodeLocation sourceCodeLocation = mock(SourceCodeLocation.class);
      when(input.getSourceCodeLocation()).thenReturn(sourceCodeLocation);

      listBuilder.add(input);
    }
View Full Code Here

  private List<CssValueNode> createInput(String value) {
    CssValueNode input = mock(CssValueNode.class);
    when(input.getValue()).thenReturn(value);

    SourceCodeLocation sourceCodeLocation = mock(SourceCodeLocation.class);
    when(input.getSourceCodeLocation()).thenReturn(sourceCodeLocation);

    return ImmutableList.of(input);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.thirdparty.common.css.SourceCodeLocation

Copyright © 2018 www.massapicom. 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.