diff options
author | acolyer <acolyer> | 2004-12-09 16:56:13 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-12-09 16:56:13 +0000 |
commit | cd22831a0d27d3f807e254db5fca950f6369417a (patch) | |
tree | f0a4970996d902bd450214ab2669c4500de7751b | |
parent | 96e92b6024e770a539a3040976e54eef2ee6d8f7 (diff) | |
download | aspectj-cd22831a0d27d3f807e254db5fca950f6369417a.tar.gz aspectj-cd22831a0d27d3f807e254db5fca950f6369417a.zip |
who put that there???
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/PointcutImpl.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/PointcutImpl.java b/weaver/src/org/aspectj/weaver/patterns/PointcutImpl.java deleted file mode 100644 index 839ae9344..000000000 --- a/weaver/src/org/aspectj/weaver/patterns/PointcutImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.aspectj.weaver.patterns; - -import org.aspectj.lang.JoinPoint; -import org.aspectj.lang.JoinPoint.StaticPart; -import org.aspectj.lang.reflect.Pointcut; -import org.aspectj.util.FuzzyBoolean; - -/** - * Implementation of the reflective pointcut interface in org.aspectj.lang.reflect - * (not to be confused with the Pointcut class in this package, which itself should - * be considered part of the weaver implementation). - */ -public class PointcutImpl implements Pointcut { - - private String pointcutExpression; - private org.aspectj.weaver.patterns.Pointcut pointcut; - - public PointcutImpl(String pointcutExpression) { - this.pointcutExpression = pointcutExpression; - try { - pointcut = new PatternParser(pointcutExpression).parsePointcut(); - } catch (ParserException pEx) { - throw new IllegalArgumentException(pEx.getMessage()); - } - } - - /* (non-Javadoc) - * @see org.aspectj.lang.reflect.Pointcut#matches(org.aspectj.lang.JoinPoint, org.aspectj.lang.JoinPoint.StaticPart) - */ - public boolean matches(JoinPoint jp, StaticPart enclosingJoinPoint) { - return pointcut.match(jp,enclosingJoinPoint) == FuzzyBoolean.YES; - } - - /* (non-Javadoc) - * @see org.aspectj.lang.reflect.Pointcut#getPointcutExpression() - */ - public String getPointcutExpression() { - return pointcutExpression; - } - -} |