Tabnine Logo
AstLiteralTextValue
Code IndexAdd Tabnine to your IDE (free)

How to use
AstLiteralTextValue
in
org.kaazing.k3po.lang.internal.ast.value

Best Java code snippets using org.kaazing.k3po.lang.internal.ast.value.AstLiteralTextValue (Showing top 19 results out of 315)

origin: k3po/k3po

public ScriptNested<R> setPropertyValue(String propertyValue) {
  node.setPropertyValue(new AstLiteralTextValue(propertyValue));
  return this;
}
origin: k3po/k3po

@Override
protected boolean equalTo(AstRegion that) {
  return (that instanceof AstLiteralTextValue) && equalTo((AstLiteralTextValue) that);
}
origin: k3po/k3po

@Override
public Masker visit(AstLiteralTextValue value, State state) {
  String literalText = value.getValue();
  byte[] literalTextAsBytes = literalText.getBytes(UTF_8);
  for (byte literalTextAsByte : literalTextAsBytes) {
    if (literalTextAsByte != 0x00) {
      return Maskers.newMasker(literalTextAsBytes);
    }
  }
  // no need to unmask for all-zeros masking key
  return Masker.IDENTITY_MASKER;
}
origin: k3po/k3po

  @Override
  public AstLiteralTextValue visitLiteralText(LiteralTextContext ctx) {
    String text = ctx.literal.getText();
    String textWithoutQuotes = text.substring(1, text.length() - 1);
    String escapedText = escapeString(textWithoutQuotes);
    AstLiteralTextValue value = new AstLiteralTextValue(escapedText);
    value.setRegionInfo(asSequentialRegion(childInfos, ctx));
    return value;
  }
}
origin: k3po/k3po

@Override
public AstValue<T> visitLiteralText(LiteralTextContext ctx) {
  if (expectedType == URI.class) {
    AstLiteralURIValueVisitor visitor = new AstLiteralURIValueVisitor(factory, environment);
    AstLiteralURIValue value = visitor.visit(ctx);
    if (value != null) {
      childInfos().add(value.getRegionInfo());
    }
    return (AstValue<T>) value;
  }
  AstLiteralTextValueVisitor visitor = new AstLiteralTextValueVisitor(factory, environment);
  AstLiteralTextValue value = visitor.visit(ctx);
  if (value != null) {
    childInfos().add(value.getRegionInfo());
  }
  return (AstValue<T>) value;
}
origin: k3po/k3po

public StreamNested<R> addValue(String value) {
  node.addValue(new AstLiteralTextValue(value));
  return this;
}
origin: k3po/k3po

@Override
public MessageEncoder visit(AstLiteralTextValue value, Void parameter) {
  return new WriteTextEncoder(value.getValue(), UTF_8);
}
origin: k3po/k3po

public StreamNested<R> setOptionValue(String optionValue) {
  node.setOptionValue(new AstLiteralTextValue(optionValue));
  return this;
}
origin: k3po/k3po

  private static WriteOptionFileOffsetHandler newWriteFileOffsetHandler(
    AstWriteOptionNode node)
  {
    AstLiteralTextValue offsetValue = (AstLiteralTextValue) node.getOptionValue();
    int offset = Integer.parseInt(offsetValue.getValue());
    WriteOptionFileOffsetHandler handler = new WriteOptionFileOffsetHandler(offset);
    handler.setRegionInfo(node.getRegionInfo());
    return handler;
  }
}
origin: k3po/k3po

public AstWriteConfigNodeBuilder setValue(String name, String value) {
  node.setValue(name, new AstLiteralTextValue(value));
  return this;
}
origin: k3po/k3po

private static ReadOptionFileOffsetHandler newReadFileOffsetHandler(
  AstReadOptionNode node)
{
  AstLiteralTextValue offsetValue = (AstLiteralTextValue) node.getOptionValue();
  int offset = Integer.parseInt(offsetValue.getValue());
  ReadOptionFileOffsetHandler handler = new ReadOptionFileOffsetHandler(offset);
  handler.setRegionInfo(node.getRegionInfo());
  return handler;
}
origin: k3po/k3po

public StreamNested<R> setOptionValue(String optionValue) {
  node.setOptionValue(new AstLiteralTextValue(optionValue));
  return this;
}
origin: k3po/k3po

public StreamNested<R> setValue(String name, String value) {
  node.setValue(name, new AstLiteralTextValue(value));
  return this;
}
origin: k3po/k3po

public AstWriteOptionNodeBuilder setOptionValue(String optionValue) {
  node.setOptionValue(new AstLiteralTextValue(optionValue));
  return this;
}
origin: k3po/k3po

public AstReadOptionNodeBuilder setOptionValue(String optionValue) {
  node.setOptionValue(new AstLiteralTextValue(optionValue));
  return this;
}
origin: k3po/k3po

public AstWriteConfigNodeBuilder addValue(String value) {
  node.addValue(new AstLiteralTextValue(value));
  return this;
}
origin: k3po/k3po

public AstWriteNodeBuilder addExactText(String exactText) {
  node.addValue(new AstLiteralTextValue(exactText));
  return this;
}
origin: k3po/k3po

public StreamNested<R> addExactText(String exactText) {
  node.addValue(new AstLiteralTextValue(exactText));
  return this;
}
origin: k3po/k3po

public AstPropertyNodeBuilder setPropertyValue(String propertyValue) {
  node.setPropertyValue(new AstLiteralTextValue(propertyValue));
  return this;
}
org.kaazing.k3po.lang.internal.ast.valueAstLiteralTextValue

Most used methods

  • <init>
  • equalTo
  • getRegionInfo
  • getValue
  • setRegionInfo

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • String (java.lang)
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now