Package com.bacoder.parser.javaproperties.api

Examples of com.bacoder.parser.javaproperties.api.Value


    super(adapters);
  }

  @Override
  public Value adapt(ValueContext context) {
    Value value = createData(context);
    value.setText(context.getText());
    return value;
  }
View Full Code Here


    if (keyContext != null) {
      KeyValue keyValue = createNode(context);
      keyValue.setKey(getAdapter(KeyAdapter.class).adapt(keyContext));
      ValueContext valueContext = getChild(context, ValueContext.class);
      if (valueContext == null) {
        Value value = createNode(context, Value.class);
        int endLine = context.getStop().getLine();
        int endColumn =
            context.getStop().getCharPositionInLine() + context.getStop().getText().length() - 1;
        value.setStartLine(endLine);
        value.setStartColumn(endColumn);
        value.setEndLine(endLine);
        value.setEndColumn(endColumn - 1);
        value.setText("");
        keyValue.setValue(value);
      } else {
        keyValue.setValue(getAdapter(ValueAdapter.class).adapt(valueContext));
      }
      return keyValue;
View Full Code Here

    super(adapters);
  }

  @Override
  public Value adapt(ValueContext context) {
    Value value = createNode(context);
    value.setText(context.getText());
    return value;
  }
View Full Code Here

TOP

Related Classes of com.bacoder.parser.javaproperties.api.Value

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.