Tabnine Logo
org.apache.commons.jelly.impl
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.commons.jelly.impl

Best Java code snippets using org.apache.commons.jelly.impl (Showing top 20 results out of 315)

origin: stackoverflow.com

 Consumer<? super SomeObject> action = obj -> {
  // some useful code here
  if(some_exceptional_condition_met) {
    throw new BreakException();
  }
});

try {
  someObjects.forEach(action);
}
catch (BreakException e) {
  // here you know that your condition has been met at least once
}
origin: org.hudsonci.stapler/commons-jelly

/**
 * @return a new TagScript based on whether
 * the given Tag class is a bean tag or DynaTag
 */
public static TagScript newInstance(Class tagClass) {
  TagFactory factory = new DefaultTagFactory(tagClass);
  return new TagScript(factory);
}
origin: org.jenkins-ci/commons-jelly

/**
 * Factory method to create a new Tag instance.
 * The default implementation is to delegate to the TagFactory
 */
protected Tag createTag() throws JellyException {
  if ( tagFactory != null) {
    return tagFactory.createTag(localName, getSaxAttributes());
  }
  return null;
}
origin: org.jvnet.hudson/commons-jelly

@Override
protected Tag createTag() throws JellyException {
  return new StaticTag(getNsUri(),getLocalName(),getElementName());
}
origin: org.eclipse.hudson.stapler/stapler-jelly

@Override
public void addAttribute(String name, Expression expression) {
  allAttributesAreConstant &= expression instanceof ConstantExpression;
  super.addAttribute(name, expression);
}
origin: commons-jelly/commons-jelly

/** Creates a new script to execute the given tag name and attributes */
public TagScript createTagScript(final String name, final Attributes attributes)
  throws JellyException {
  return new TagScript(
    new TagFactory() {
      public Tag createTag(String name, Attributes attributes) throws JellyException {
        return DynamicTagLibrary.this.createTag(name, attributes);
      }
    }
  );
}
origin: org.hudsonci.stapler/commons-jelly

/**
 * Set the input stream
 * @param scriptAsInputStream
 */
public void setScript(InputStream scriptAsInputStream) {
  m_inputStream = scriptAsInputStream;
  compileScriptAndKeep();
}
origin: commons-jelly/commons-jelly

  /**
   * @return the bean that has just been created
   */
  public Object getBean() {
    return getDynaBean();
  }
}
origin: org.hudsonci.stapler/commons-jelly-tags-define

/**
 * Sets the name of the attribute
 */
public void setName(String name) {
  attribute.setName(name);
}
origin: org.hudsonci.stapler/commons-jelly-tags-define

  /**
   * Sets the default value of this attribute
   */
  public void setDefaultValue(Expression defaultValue) {
    attribute.setDefaultValue(defaultValue);
  }
}
origin: org.jenkins-ci/commons-jelly

@Override
protected Tag createTag() throws JellyException {
  return new StaticTag(getNsUri(),getLocalName(),getElementName());
}
origin: org.jenkins-ci/commons-jelly

/**
 * @return a new TagScript based on whether
 * the given Tag class is a bean tag or DynaTag
 */
public static TagScript newInstance(Class tagClass) {
  TagFactory factory = new DefaultTagFactory(tagClass);
  return new TagScript(factory);
}
origin: commons-jelly/commons-jelly

/**
 * Factory method to create a new Tag instance.
 * The default implementation is to delegate to the TagFactory
 */
protected Tag createTag() throws JellyException {
  if ( tagFactory != null) {
    return tagFactory.createTag(localName, getSaxAttributes());
  }
  return null;
}
origin: stackoverflow.com

 try {
  someObjects.forEach(obj -> {
    // some useful code here
    if(some_exceptional_condition_met) {
      throw new BreakException();
    }
  }
}
catch (BreakException e) {
  // here you know that your condition has been met at least once
}
origin: commons-jelly/commons-jelly

/**
 * Set the input stream
 * @param scriptAsInputStream
 */
public void setScript(InputStream scriptAsInputStream) {
  m_inputStream = scriptAsInputStream;
  compileScriptAndKeep();
}
origin: org.hudsonci.stapler/commons-jelly

@Override
protected Tag createTag() throws JellyException {
  return new StaticTag(getNsUri(),getLocalName(),getElementName());
}
origin: commons-jelly/commons-jelly

/**
 * @return a new TagScript based on whether
 * the given Tag class is a bean tag or DynaTag
 */
public static TagScript newInstance(Class tagClass) {
  TagFactory factory = new DefaultTagFactory(tagClass);
  return new TagScript(factory);
}
origin: org.jvnet.hudson/commons-jelly

/**
 * Factory method to create a new Tag instance.
 * The default implementation is to delegate to the TagFactory
 */
protected Tag createTag() throws JellyException {
  if ( tagFactory != null) {
    return tagFactory.createTag(localName, getSaxAttributes());
  }
  return null;
}
origin: org.jvnet.hudson/commons-jelly

/**
 * @return a new TagScript based on whether
 * the given Tag class is a bean tag or DynaTag
 */
public static TagScript newInstance(Class tagClass) {
  TagFactory factory = new DefaultTagFactory(tagClass);
  return new TagScript(factory);
}
origin: org.hudsonci.stapler/commons-jelly

/**
 * Factory method to create a new Tag instance.
 * The default implementation is to delegate to the TagFactory
 */
protected Tag createTag() throws JellyException {
  if ( tagFactory != null) {
    return tagFactory.createTag(localName, getSaxAttributes());
  }
  return null;
}
org.apache.commons.jelly.impl

Most used classes

  • TagScript
    TagScript is a Script that evaluates a custom tag. Note that this class should be re-entrant and us
  • ScriptBlock
    ScriptBlock a block of scripts.
  • TextScript
    TextScript outputs some static text.
  • Attribute
    Represents the attribute definition used by dynamic tags, such as whether the attribute is required
  • BreakException
    BreakException is used to terminate loops such as and tags.
  • DynamicDynaBeanTag,
  • DynamicTagLibrary,
  • Embedded,
  • ExpressionAttribute,
  • ExpressionScript,
  • BeanSource,
  • CompositeTextScriptBlock,
  • DefaultTagFactory,
  • DefaultTagLibraryResolver,
  • DynamicTag,
  • StaticTag,
  • StaticTagScript,
  • TagFactory,
  • TestTagLibraryResolver
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