Package hudson.model.labels
Class LabelExpression
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Label
hudson.model.labels.LabelExpression
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,Comparable<Label>
,ModelObjectWithChildren
,ModelObjectWithContextMenu
- Direct Known Subclasses:
LabelExpression.Binary
,LabelExpression.Not
,LabelExpression.Paren
Boolean expression of labels.
- Since:
- 1.372
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
static final class
static final class
static class
static final class
static class
No-op but useful for preserving the parenthesis in the user input.Nested classes/interfaces inherited from class hudson.model.Label
Label.ConverterImpl
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
Field Summary
Fields inherited from class hudson.model.Label
loadStatistics, name, nodeProvisioner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AutoCompletionCandidates
autoComplete
(String label) Generates auto-completion candidates for a (partial) label.Returns a label expression that represents this label.static FormValidation
Validates a label expression.static FormValidation
Validates a label expression.Methods inherited from class hudson.model.Label
accept, and, compareTo, contains, doChildrenContextMenu, equals, get, getApi, getBusyExecutors, getClouds, getDescription, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getSortedNodes, getTiedJobCount, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isAtom, isEmpty, isOffline, isSelfLabel, listAtoms, matches, matches, matches, not, or, paren, parse, parseExpression, precedence, toString
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActions
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jenkins.model.ModelObjectWithChildren
doChildrenContextMenu
Methods inherited from interface hudson.search.SearchItem
getSearchIcon
-
Constructor Details
-
LabelExpression
-
-
Method Details
-
getExpression
Description copied from class:Label
Returns a label expression that represents this label.- Specified by:
getExpression
in classLabel
-
autoComplete
Generates auto-completion candidates for a (partial) label.- Parameters:
label
- The (partial) label for which auto-completion is being requested.- Returns:
- A set of auto-completion candidates.
- Since:
- 2.243
-
validate
Validates a label expression.- Parameters:
expression
- The expression to validate.- Returns:
- The validation result.
- Since:
- 2.243
-
validate
@NonNull public static FormValidation validate(@Nullable String expression, @CheckForNull Item item) Validates a label expression.- Parameters:
expression
- The label expression to validate.item
- The context item (like a job or a folder), if applicable; used for potential additional restrictions viaLabelValidator
instances.- Returns:
- The validation result.
- Since:
- 2.243
-