Codota Logo
Interpolation
Code IndexAdd Codota to your IDE (free)

How to use
Interpolation
in
freemarker.core

Best Java code snippets using freemarker.core.Interpolation (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.freemarker/freemarker

final String getCanonicalFormInStringLiteral() {
  return dump(true, true);
}
origin: org.freemarker/freemarker

@Override
public String getCanonicalForm() {
  if (dynamicValue == null) {
    return StringUtil.ftlQuote(value);
  } else {
    StringBuilder sb = new StringBuilder();
    sb.append('"');
    for (Object child : dynamicValue) {
      if (child instanceof Interpolation) {
        sb.append(((Interpolation) child).getCanonicalFormInStringLiteral());
      } else {
        sb.append(StringUtil.FTLStringLiteralEnc((String) child, '"'));
      }
    }
    sb.append('"');
    return sb.toString();
  }
}
 
origin: org.freemarker/freemarker

Object calcedPart =
    part instanceof String ? part
    : ((Interpolation) part).calculateInterpolatedStringOrMarkup(env);
if (markupResult != null) {
  TemplateMarkupOutputModel<?> partMO = calcedPart instanceof String
origin: org.freemarker/freemarker-gae

Object calcedPart =
    part instanceof String ? part
    : ((Interpolation) part).calculateInterpolatedStringOrMarkup(env);
if (markupResult != null) {
  TemplateMarkupOutputModel<?> partMO = calcedPart instanceof String
origin: org.freemarker/freemarker

@Override
protected final String dump(boolean canonical) {
  return dump(canonical, false);
}
 
origin: org.freemarker/freemarker-gae

@Override
public String getCanonicalForm() {
  if (dynamicValue == null) {
    return StringUtil.ftlQuote(value);
  } else {
    StringBuilder sb = new StringBuilder();
    sb.append('"');
    for (Object child : dynamicValue) {
      if (child instanceof Interpolation) {
        sb.append(((Interpolation) child).getCanonicalFormInStringLiteral());
      } else {
        sb.append(StringUtil.FTLStringLiteralEnc((String) child, '"'));
      }
    }
    sb.append('"');
    return sb.toString();
  }
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

Object calcedPart =
    part instanceof String ? part
    : ((Interpolation) part).calculateInterpolatedStringOrMarkup(env);
if (markupResult != null) {
  TemplateMarkupOutputModel<?> partMO = calcedPart instanceof String
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

final String getCanonicalFormInStringLiteral() {
  return dump(true, true);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public String getCanonicalForm() {
  if (dynamicValue == null) {
    return StringUtil.ftlQuote(value);
  } else {
    StringBuilder sb = new StringBuilder();
    sb.append('"');
    for (Object child : dynamicValue) {
      if (child instanceof Interpolation) {
        sb.append(((Interpolation) child).getCanonicalFormInStringLiteral());
      } else {
        sb.append(StringUtil.FTLStringLiteralEnc((String) child, '"'));
      }
    }
    sb.append('"');
    return sb.toString();
  }
}
 
origin: org.freemarker/freemarker-gae

final String getCanonicalFormInStringLiteral() {
  return dump(true, true);
}
origin: org.freemarker/freemarker-gae

@Override
protected final String dump(boolean canonical) {
  return dump(canonical, false);
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
protected final String dump(boolean canonical) {
  return dump(canonical, false);
}
 
freemarker.coreInterpolation

Most used methods

  • calculateInterpolatedStringOrMarkup
    Returns the already type-converted value that this interpolation will insert into the output.
  • dump
  • getCanonicalFormInStringLiteral

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Menu (java.awt)
  • String (java.lang)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Option (scala)
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