hudson.model.Label.and()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中hudson.model.Label.and()方法的一些代码示例,展示了Label.and()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.and()方法的具体详情如下:
包路径:hudson.model.Label
类名称:Label
方法名:and

Label.and介绍

[英]Returns the label that represents "this&rhs"
[中]返回表示“this&rhs”的标签

代码示例

代码示例来源:origin: jenkinsci/jenkins

public final Label  term4() throws RecognitionException, TokenStreamException {
  Label l;
  
  Label r;
  
  l=term5();
  {
  _loop12:
  do {
    if ((LA(1)==AND)) {
      match(AND);
      r=term5();
      l=l.and(r);
    }
    else {
      break _loop12;
    }
    
  } while (true);
  }
  return l;
}

代码示例来源:origin: hudson.plugins/project-inheritance

@Override
  protected Label reduceFromFullInheritance(Deque<Label> list) {
    //We simply join the labels via the AND operator
    Label out = null;
    if (list == null || list.isEmpty()) { return out; }
    for (Label l : list) {
      if (l == null) { continue; }
      out = (out == null) ? l : out.and(l);
    }
    return out;
  }
};

代码示例来源:origin: i-m-c/jenkins-inheritance-plugin

@Override
  protected Label reduceFromFullInheritance(Deque<Label> list) {
    //We simply join the labels via the AND operator
    Label out = null;
    if (list == null || list.isEmpty()) { return out; }
    for (Label l : list) {
      if (l == null) { continue; }
      out = (out == null) ? l : out.and(l);
    }
    return out;
  }
};

代码示例来源:origin: hudson.plugins/project-inheritance

public Label getMagicNodeLabelForTestingValue() {
  String str = this.getMagicNodeLabelForTesting();
  if (str == null) { return null; }
  Set<LabelAtom> nonTestSet = Label.parse(str);
  
  Label out = null;
  for (LabelAtom la : nonTestSet) {
    out = (out == null) ? la : out.and(la);
  }
  return out;
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

public final Label  term4() throws RecognitionException, TokenStreamException {
  Label l;
  
  Label r;
  
  l=term5();
  {
  _loop12:
  do {
    if ((LA(1)==AND)) {
      match(AND);
      r=term5();
      l=l.and(r);
    }
    else {
      break _loop12;
    }
    
  } while (true);
  }
  return l;
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

t=t.and(r);

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

l=l.and(r);
break;

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

l=l.and(r);
break;

代码示例来源:origin: hudson.plugins/project-inheritance

return (lbl == null) ? magic.not() : lbl.and(magic.not());

代码示例来源:origin: hudson/hudson-2.x

l=l.and(r);
break;

相关文章