congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ModelASTValue.toJSON
Code IndexAdd Tabnine to your IDE (free)

How to use
toJSON
method
in
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue

Best Java code snippets using org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue.toJSON (Showing top 13 results out of 315)

origin: jenkinsci/pipeline-model-definition-plugin

@Override
public Object toJSON() {
  return value.toJSON();
}
origin: org.jenkinsci.plugins/pipeline-model-api

@Override
public Object toJSON() {
  return value.toJSON();
}
origin: org.jenkinsci.plugins/pipeline-model-api

@Override
public JSONArray toJSON() {
  final JSONArray a = new JSONArray();
  for (ModelASTValue argument: arguments) {
    a.add(argument.toJSON());
  }
  return a;
}
origin: jenkinsci/pipeline-model-definition-plugin

@Override
public JSONArray toJSON() {
  final JSONArray a = new JSONArray();
  for (ModelASTValue argument: arguments) {
    a.add(argument.toJSON());
  }
  return a;
}
origin: jenkinsci/pipeline-model-definition-plugin

@Override
public JSONArray toJSON() {
  final JSONArray a = new JSONArray();
  for (Map.Entry<ModelASTKey, ModelASTValue> entry: arguments.entrySet()) {
    JSONObject o = new JSONObject();
    o.accumulate("key", entry.getKey().toJSON());
    o.accumulate("value", entry.getValue().toJSON());
    a.add(o);
  }
  return a;
}
origin: org.jenkinsci.plugins/pipeline-model-api

@Override
public JSONArray toJSON() {
  final JSONArray a = new JSONArray();
  for (Map.Entry<ModelASTKey, ModelASTValue> entry: arguments.entrySet()) {
    JSONObject o = new JSONObject();
    o.accumulate("key", entry.getKey().toJSON());
    o.accumulate("value", entry.getValue().toJSON());
    a.add(o);
  }
  return a;
}
origin: jenkinsci/pipeline-model-definition-plugin

@Override
public JSONArray toJSON() {
  final JSONArray a = new JSONArray();
  for (Map.Entry<ModelASTKey, ModelASTValue> entry: tools.entrySet()) {
    JSONObject o = new JSONObject();
    o.accumulate("key", entry.getKey().toJSON());
    o.accumulate("value", entry.getValue().toJSON());
    a.add(o);
  }
  return a;
}
origin: org.jenkinsci.plugins/pipeline-model-api

@Override
public JSONArray toJSON() {
  final JSONArray a = new JSONArray();
  for (Map.Entry<ModelASTKey, ModelASTValue> entry: tools.entrySet()) {
    JSONObject o = new JSONObject();
    o.accumulate("key", entry.getKey().toJSON());
    o.accumulate("value", entry.getValue().toJSON());
    a.add(o);
  }
  return a;
}
origin: jenkinsci/pipeline-model-definition-plugin

@Override
public JSONObject toJSON() {
  final JSONObject o = new JSONObject();
  o.accumulate("message", message.toJSON());
  if (id != null) {
    o.accumulate("id", id.toJSON());
  }
  if (ok != null) {
    o.accumulate("ok", ok.toJSON());
  }
  if (submitter != null) {
    o.accumulate("submitter", submitter.toJSON());
  }
  if (submitterParameter != null) {
    o.accumulate("submitterParameter", submitterParameter.toJSON());
  }
  if (!parameters.isEmpty()) {
    final JSONObject p = new JSONObject();
    final JSONArray a = new JSONArray();
    for (ModelASTBuildParameter parameter : parameters) {
      a.add(parameter.toJSON());
    }
    // Redundancy due to how we parse parameters in JSON. This makes top-level and input parameters JSON consistent.
    p.accumulate("parameters", a);
    o.accumulate("parameters", p);
  }
  return o;
}
origin: jenkinsci/pipeline-model-definition-plugin

@Override
public JSONObject toJSON() {
  final JSONArray a = new JSONArray();
  for (ModelASTValue v : libs) {
    a.add(v.toJSON());
  }
  return new JSONObject().accumulate("libraries", a);
}
origin: org.jenkinsci.plugins/pipeline-model-api

@Override
public JSONObject toJSON() {
  final JSONArray a = new JSONArray();
  for (ModelASTValue v : libs) {
    a.add(v.toJSON());
  }
  return new JSONObject().accumulate("libraries", a);
}
origin: org.jenkinsci.plugins/pipeline-model-api

@Override
public JSONObject toJSON() {
  final JSONArray a = new JSONArray();
  for (ModelASTValue arg: args) {
    a.add(arg.toJSON());
  }
  return new JSONObject().accumulate("name", name).accumulate("arguments", a);
}
origin: jenkinsci/pipeline-model-definition-plugin

@Override
public JSONObject toJSON() {
  final JSONArray a = new JSONArray();
  for (ModelASTValue arg: args) {
    a.add(arg.toJSON());
  }
  return new JSONObject().accumulate("name", name).accumulate("arguments", a);
}
org.jenkinsci.plugins.pipeline.modeldefinition.astModelASTValuetoJSON

Popular methods of ModelASTValue

  • getValue
    Returns a value or an expression that represents this value. This model is used at the compile time,
  • equals
  • getSourceLocation
  • hashCode
  • isLiteral
    If the value can be determined without side-effect at AST parsing time, this method returns true, an
  • removeSourceLocation
  • toGroovy
  • validate

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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