KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > internal > lang > reflect > SignaturePatternImpl


1 /* *******************************************************************
2  * Copyright (c) 2005 Contributors.
3  * All rights reserved.
4  * This program and the accompanying materials are made available
5  * under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution and is available at
7  * http://eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Adrian Colyer Initial implementation
11  * ******************************************************************/

12 package org.aspectj.internal.lang.reflect;
13
14 import org.aspectj.lang.reflect.SignaturePattern;
15
16 /**
17  * Basic implementation of signature pattern
18  *
19  */

20 public class SignaturePatternImpl implements SignaturePattern {
21
22     private String JavaDoc sigPattern;
23     
24     public SignaturePatternImpl(String JavaDoc pattern) {
25         this.sigPattern = pattern;
26     }
27
28     /* (non-Javadoc)
29      * @see org.aspectj.lang.reflect.SignaturePattern#asString()
30      */

31     public String JavaDoc asString() {
32         return sigPattern;
33     }
34     
35     public String JavaDoc toString() { return asString(); }
36
37 }
38
Popular Tags