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
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic final classstatic classstatic final classstatic classNo-op but useful for preserving the parenthesis in the user input.Nested classes/interfaces inherited from class hudson.model.Label
Label.ConverterImpl, Label.LabelComputerSource, Label.LabelComputerSourceImplNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoCompletionCandidatesautoComplete(String label) Generates auto-completion candidates for a (partial) label.Returns a label expression that represents this label.static FormValidationValidates a label expression.static FormValidationValidates a label expression.Methods inherited from class hudson.model.Label
accept, and, compareTo, contains, doChildrenContextMenu, equals, get, getApi, getBusyExecutors, getClouds, getComputers, getDescription, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getTiedJobCount, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isAtom, isEmpty, isOffline, isSelfLabel, listAtoms, matches, matches, matches, not, or, paren, parse, parseExpression, precedence, toStringMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jenkins.model.ModelObjectWithChildren
doChildrenContextMenuMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
LabelExpression
-
-
Method Details
-
getExpression
Description copied from class:LabelReturns a label expression that represents this label.- Specified by:
getExpressionin 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 viaLabelValidatorinstances.- Returns:
- The validation result.
- Since:
- 2.243
-