~ubuntu-branches/ubuntu/trusty/aspectj/trusty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/TypePattern.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-03-15 23:54:31 UTC
  • mfrom: (1.1.5 upstream) (7.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110315235431-7d8cs3gvs4tnqx7t
Tags: 1.6.11+dfsg-1
* New upstream release.
* Updated Standards-Version to 3.9.1 (no changes needed).
* Fix local Javadoc links:
  - d/patches/07_javadoc_links.diff: Use locally installed
   javadoc packages and hyperlink with them.
  - d/control: Add B-D on default-java-doc and libasm3-java-doc.
* d/control: Drop B-D on itself (our new bootstrap infrastructure doesn't need
  that anymore).
* Split packages into :
  - aspectj: only contains CLI tools.
  - libaspectj-java: JAR librairies for /usr/share/java.
  - libaspectj-java-doc: 4 API's Javadoc.
  - aspectj-doc: Programming Guides and SDK Documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/********************************************************************
2
 
 * Copyright (c) 2006 Contributors. All rights reserved. 
 
2
 * Copyright (c) 2006, 2010 Contributors. All rights reserved. 
3
3
 * This program and the accompanying materials are made available 
4
4
 * under the terms of the Eclipse Public License v1.0 
5
5
 * which accompanies this distribution and is available at 
7
7
 *  
8
8
 * Contributors: IBM Corporation - initial API and implementation 
9
9
 *                               Helen Hawkins   - iniital version
 
10
 *               Nieraj Singh
10
11
 *******************************************************************/
11
12
package org.aspectj.org.eclipse.jdt.core.dom;
12
13
 
13
 
 
14
14
/**
15
15
 * abstract TypePattern DOM AST node.
16
 
 * has:
17
 
 *   nothing at the moment
18
16
 */
19
17
public abstract class TypePattern extends PatternNode {
20
18
 
 
19
        private String typePatternExpression;
 
20
        
 
21
        public static final String EMPTY_EXPRESSION = "";
 
22
 
21
23
        TypePattern(AST ast) {
22
24
                super(ast);
23
25
        }
24
26
 
25
 
        int memSize() {
26
 
                return 0; // stub method
 
27
        TypePattern(AST ast, String typePatternExpression) {
 
28
                super(ast);
 
29
                this.typePatternExpression = typePatternExpression;
 
30
        }
 
31
 
 
32
        /**
 
33
         * Should be called for internal setting only, if the expression needs to be set
 
34
         * lazily
 
35
         * @param typePatternExpression
 
36
         */
 
37
        protected void setTypePatternExpression(String typePatternExpression) {
 
38
                this.typePatternExpression = typePatternExpression;
 
39
        }
 
40
 
 
41
        /**
 
42
         * Return the type pattern in expression form (String representation). In
 
43
         * many cases, this is not null, although it may be null in some cases like
 
44
         * the NoTypePattern
 
45
         * 
 
46
         * @return String expression of the type pattern. May be null.
 
47
         */
 
48
        public String getTypePatternExpression() {
 
49
                return typePatternExpression;
 
50
        }
 
51
 
 
52
        int treeSize() {
 
53
                return memSize();
27
54
        }
28
55
 
29
56
}