hudson.model.labels
Class LabelExpression.Binary

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Label
              extended by hudson.model.labels.LabelExpression
                  extended by hudson.model.labels.LabelExpression.Binary
All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem, Comparable<Label>, ModelObjectWithContextMenu
Direct Known Subclasses:
LabelExpression.And, LabelExpression.Iff, LabelExpression.Implies, LabelExpression.Or
Enclosing class:
LabelExpression

public abstract static class LabelExpression.Binary
extends LabelExpression


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.labels.LabelExpression
LabelExpression.And, LabelExpression.Binary, LabelExpression.Iff, LabelExpression.Implies, LabelExpression.Not, LabelExpression.Or, LabelExpression.Paren
 
Nested classes/interfaces inherited from class hudson.model.Label
Label.ConverterImpl
 
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem
 
Field Summary
 Label lhs
           
 Label rhs
           
 
Fields inherited from class hudson.model.Label
loadStatistics, name, nodeProvisioner
 
Constructor Summary
LabelExpression.Binary(Label lhs, Label rhs, LabelOperatorPrecedence op)
           
 
Method Summary
 boolean matches(VariableResolver<Boolean> resolver)
          Note that we evaluate both branches of the expression all the time.
protected abstract  boolean op(boolean a, boolean b)
           
 
Methods inherited from class hudson.model.labels.LabelExpression
getExpression
 
Methods inherited from class hudson.model.Label
accept, and, compareTo, contains, equals, get, getApi, getBusyExecutors, getClouds, getDescription, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isEmpty, isOffline, isSelfLabel, listAtoms, matches, matches, not, or, paren, parse, parseExpression, precedence, toString
 
Methods inherited from class hudson.model.Actionable
addAction, doContextMenu, getAction, getAction, getActions, getActions, getDynamic
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lhs

public final Label lhs

rhs

public final Label rhs
Constructor Detail

LabelExpression.Binary

public LabelExpression.Binary(Label lhs,
                              Label rhs,
                              LabelOperatorPrecedence op)
Method Detail

matches

public boolean matches(VariableResolver<Boolean> resolver)
Note that we evaluate both branches of the expression all the time. That is, it behaves like "a|b" not "a||b"

Specified by:
matches in class Label

op

protected abstract boolean op(boolean a,
                              boolean b)


Copyright © 2004-2013. All Rights Reserved.