Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3da1dbfac9b2dc19b095c3d9911d747d4d394103 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*******************************************************************************
 * Copyright (c) 2009 Cloudsmith Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Cloudsmith Inc. - initial API and implementation
 *******************************************************************************/
package org.eclipse.equinox.internal.p2.metadata.expression;

public interface IExpressionConstants {
	String KEYWORD_ALL = "all"; //$NON-NLS-1$

	String KEYWORD_BOOLEAN = "boolean"; //$NON-NLS-1$
	String KEYWORD_CLASS = "class"; //$NON-NLS-1$
	String KEYWORD_EXISTS = "exists"; //$NON-NLS-1$
	String KEYWORD_FALSE = "false"; //$NON-NLS-1$
	String KEYWORD_FILTER = "filter"; //$NON-NLS-1$
	String KEYWORD_NULL = "null"; //$NON-NLS-1$
	String KEYWORD_RANGE = "range"; //$NON-NLS-1$
	String KEYWORD_TRUE = "true"; //$NON-NLS-1$

	String KEYWORD_VERSION = "version"; //$NON-NLS-1$
	String OPERATOR_AND = "&&"; //$NON-NLS-1$
	String OPERATOR_AT = "[]"; //$NON-NLS-1$
	String OPERATOR_EQUALS = "=="; //$NON-NLS-1$
	String OPERATOR_GT = ">"; //$NON-NLS-1$
	String OPERATOR_GT_EQUAL = ">="; //$NON-NLS-1$
	String OPERATOR_LT = "<"; //$NON-NLS-1$
	String OPERATOR_LT_EQUAL = "<="; //$NON-NLS-1$
	String OPERATOR_MATCHES = "~="; //$NON-NLS-1$
	String OPERATOR_MEMBER = "."; //$NON-NLS-1$
	String OPERATOR_NOT = "!"; //$NON-NLS-1$
	String OPERATOR_NOT_EQUALS = "!="; //$NON-NLS-1$

	String OPERATOR_OR = "||"; //$NON-NLS-1$
	String OPERATOR_PARAMETER = "$"; //$NON-NLS-1$

	int PRIORITY_LITERAL = 1;
	int PRIORITY_VARIABLE = 1;
	int PRIORITY_FUNCTION = 2; // for extend query expressions
	int PRIORITY_MEMBER = 3;
	int PRIORITY_COLLECTION = 4;
	int PRIORITY_NOT = 5;
	int PRIORITY_BINARY = 6;
	int PRIORITY_AND = 7;
	int PRIORITY_OR = 8;
	int PRIORITY_CONDITION = 9;
	int PRIORITY_ASSIGNMENT = 10;
	int PRIORITY_LAMBDA = 11;
	int PRIORITY_COMMA = 12;
	int PRIORITY_MAX = 20;

	String VARIABLE_EVERYTHING = "everything"; //$NON-NLS-1$
	String VARIABLE_THIS = "this"; //$NON-NLS-1$
}

Back to the top