Codota Logo
AstLiteralTextValue
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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 StreamNested<R> setOptionValue(String optionValue) {
  node.setOptionValue(new AstLiteralTextValue(optionValue));
  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 AstWriteConfigNodeBuilder 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 StreamNested<R> setValue(String name, String value) {
  node.setValue(name, 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 AstWriteConfigNodeBuilder addValue(String value) {
  node.addValue(new AstLiteralTextValue(value));
  return this;
}
origin: k3po/k3po

public AstReadOptionNodeBuilder setOptionValue(String optionValue) {
  node.setOptionValue(new AstLiteralTextValue(optionValue));
  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

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now