comparison dwtx/jface/text/templates/TemplateTranslator.d @ 147:000f9136b8f7

final
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 22:35:05 +0200
parents 02cd5f1224d3
children f70d9508c95c
comparison
equal deleted inserted replaced
146:75302ef3f92f 147:000f9136b8f7
69 public class TemplateTranslator { 69 public class TemplateTranslator {
70 /** 70 /**
71 * Regex pattern for qualifiedname 71 * Regex pattern for qualifiedname
72 * @since 3.4 72 * @since 3.4
73 */ 73 */
74 private static final String QUALIFIED_NAME= "(?:\\w++\\.)*\\w++"; //$NON-NLS-1$ 74 private static const String QUALIFIED_NAME= "(?:\\w++\\.)*\\w++"; //$NON-NLS-1$
75 75
76 /** 76 /**
77 * Regex pattern for argumenttext 77 * Regex pattern for argumenttext
78 * @since 3.4 78 * @since 3.4
79 */ 79 */
80 private static final String ARGUMENT_TEXT= "'(?:(?:'')|(?:[^']))*'"; //$NON-NLS-1$ 80 private static const String ARGUMENT_TEXT= "'(?:(?:'')|(?:[^']))*'"; //$NON-NLS-1$
81 81
82 /** 82 /**
83 * Regex pattern for argument 83 * Regex pattern for argument
84 * @since 3.4 84 * @since 3.4
85 */ 85 */
86 private static final String ARGUMENT= "(?:" + QUALIFIED_NAME + ")|(?:" + ARGUMENT_TEXT + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 86 private static const String ARGUMENT= "(?:" + QUALIFIED_NAME + ")|(?:" + ARGUMENT_TEXT + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
87 87
88 /** 88 /**
89 * Precompiled regex pattern for qualified names. 89 * Precompiled regex pattern for qualified names.
90 * @since 3.3 90 * @since 3.3
91 */ 91 */
92 private static final Pattern PARAM_PATTERN= Pattern.compile(ARGUMENT); 92 private static const Pattern PARAM_PATTERN= Pattern.compile(ARGUMENT);
93 /** 93 /**
94 * Precompiled regex pattern for valid dollar escapes (dollar literals and variables) and 94 * Precompiled regex pattern for valid dollar escapes (dollar literals and variables) and
95 * (invalid) single dollars. 95 * (invalid) single dollars.
96 * @since 3.3 96 * @since 3.3
97 */ 97 */