Started playing with label expressions.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33616 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-08-07 23:02:46 +00:00
1 parent 593f5ba89f
commit 09afdea42e
2 files changed
+28

No files matched your search

@@ -0,0 +1,15 @@
package hudson.model;
/**
* Boolean expression of labels.
*
* @author Kohsuke Kawaguchi
* @since 1.COMPOSITELABEL
*/
public abstract class LabelExpression extends Label {
public static final class And extends LabelExpression {
private final Label lhs,rhs;
}
}
@@ -0,0 +1,13 @@
package hudson.model;
/**
* Atomic single token label, like "foo" or "bar".
*
* @author Kohsuke Kawaguchi
* @since 1.COMPOSITELABEL
*/
public class LabelToken extends Label {
public LabelToken(String name) {
super(name);
}
}