org.aspectj.compiler.crosscuts.ast
Class NamePcd

java.lang.Object
  extended byorg.aspectj.compiler.base.CompilerObject
      extended byorg.aspectj.compiler.base.ast.ASTObject
          extended byorg.aspectj.compiler.base.ast.Expr
              extended byorg.aspectj.compiler.crosscuts.ast.Pcd
                  extended byorg.aspectj.compiler.crosscuts.ast.NamePcd

public class NamePcd
extends Pcd


Field Summary
protected  FormalsPattern formals
           
protected  java.lang.String id
           
protected  TypeD parentName
           
protected  PointcutSO pointcut
           
 
Fields inherited from class org.aspectj.compiler.base.ast.Expr
type
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
protected NamePcd(SourceLocation source)
           
  NamePcd(SourceLocation location, TypeD _parentName, java.lang.String _id, FormalsPattern _formals, PointcutSO _pointcut)
           
 
Method Summary
 boolean allowsNameBinding()
          This is a different form of name binding than in this, target and args
 void checkStatic()
          This should call "showNonStaticError()" for any Pcd that can not be used for purely static matching.
 PointcutSO concretizePointcut(Type inType)
           
 ASTObject copyWalk(CopyWalker walker)
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 java.lang.String getDefaultDisplayName()
           
 FormalsPattern getFormals()
           
 java.lang.String getId()
           
 TypeD getParentName()
           
 PointcutSO getPointcut()
           
 PointcutDec getPointcutDec()
           
 org.aspectj.compiler.crosscuts.joinpoints.JpPlanner makePlanner(PlanData planData)
          Build a partial plan for this pointcut on the given joinPoint in the context of the planData.
 ASTObject postScope(ScopeWalker walker)
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setFormals(FormalsPattern _formals)
           
 void setId(java.lang.String _id)
           
 void setParentName(TypeD _parentName)
           
 void setPointcut(PointcutSO _pointcut)
           
 java.lang.String toShortString()
           
 
Methods inherited from class org.aspectj.compiler.crosscuts.ast.Pcd
discoverType, showNonStaticError, unparse, unparse
 
Methods inherited from class org.aspectj.compiler.base.ast.Expr
assertType, canBeCopied, cgBuffer, cgEffect, cgTest, cgValue, cgValue, checkSpec, cleanup, getType, isAssignableTo, isConstantFalse, isConstantTrue, isConstantZero, isInConstructorCallExpr, isInExprStmt, isLegalStmt, isMethodConvertableTo, isUltimatelyLiteral, makeQualifiedThis, makeReference, postCopy, setType, showOperatorTypeError, showOperatorTypeError, walkCleanup, walkFrameLoc
 
Methods inherited from class org.aspectj.compiler.base.ast.ASTObject
addComment, buildAccessMethod, checkNoSharing, clearComment, clearParent, contains, containsTypes, copy, display, fixAccessPost, fixAST, fromSource, getAST, getBeginColumn, getBeginLine, getBytecodeType, getBytecodeTypeDec, getComment, getCompilationUnit, getDeclaringType, getEnclosingCodeDec, getEnclosingDec, getEndColumn, getEndLine, getEndPosition, getFormalComment, getLexicalType, getOutermostBytecodeType, getOutermostLexicalType, getParent, getSourceDirectoryName, getSourceFile, getSourceFileName, getSourceLocation, getStartPosition, hasLegalProtectedAccess, hasSource, hasSourceLocation, implementMixin, indexOf, inStaticContext, isLanguageVisible, isLeaf, isSynthetic, makeChild, makeChild, postAssignmentCheck, postCleanup, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postThreading, preAssignmentCheck, preCopy, preIntroduction, preLift, preMove, preScope, preThreading, remove, remove, removeChildAt, replaceWith, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toString, walk, walkAnalysis, walkAssignmentCheck, walkFlow, walkForwardReference, walkInnerInfo, walkMemberMunger, walkScope
 
Methods inherited from class org.aspectj.compiler.base.CompilerObject
getCompiler, getOptions, getTypeManager, getWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parentName

protected TypeD parentName

id

protected java.lang.String id

formals

protected FormalsPattern formals

pointcut

protected PointcutSO pointcut
Constructor Detail

NamePcd

public NamePcd(SourceLocation location,
               TypeD _parentName,
               java.lang.String _id,
               FormalsPattern _formals,
               PointcutSO _pointcut)

NamePcd

protected NamePcd(SourceLocation source)
Method Detail

toShortString

public java.lang.String toShortString()
Specified by:
toShortString in class Pcd

checkStatic

public void checkStatic()
Description copied from class: Pcd
This should call "showNonStaticError()" for any Pcd that can not be used for purely static matching. This is used by 'declare error/warning' and 'declare soft'.

Specified by:
checkStatic in class Pcd

getPointcutDec

public PointcutDec getPointcutDec()

allowsNameBinding

public boolean allowsNameBinding()
This is a different form of name binding than in this, target and args

Overrides:
allowsNameBinding in class Pcd

makePlanner

public org.aspectj.compiler.crosscuts.joinpoints.JpPlanner makePlanner(PlanData planData)
Description copied from class: Pcd
Build a partial plan for this pointcut on the given joinPoint in the context of the planData.

Specified by:
makePlanner in class Pcd

postScope

public ASTObject postScope(ScopeWalker walker)
Overrides:
postScope in class ASTObject

concretizePointcut

public PointcutSO concretizePointcut(Type inType)

getParentName

public TypeD getParentName()

setParentName

public void setParentName(TypeD _parentName)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String _id)

getFormals

public FormalsPattern getFormals()

setFormals

public void setFormals(FormalsPattern _formals)

getPointcut

public PointcutSO getPointcut()

setPointcut

public void setPointcut(PointcutSO _pointcut)

copyWalk

public ASTObject copyWalk(CopyWalker walker)
Overrides:
copyWalk in class ASTObject

getChildAt

public ASTObject getChildAt(int childIndex)
Overrides:
getChildAt in class ASTObject

getChildNameAt

public java.lang.String getChildNameAt(int childIndex)
Overrides:
getChildNameAt in class ASTObject

setChildAt

public void setChildAt(int childIndex,
                       ASTObject child)
Overrides:
setChildAt in class ASTObject

getChildCount

public int getChildCount()
Overrides:
getChildCount in class ASTObject

getDefaultDisplayName

public java.lang.String getDefaultDisplayName()
Overrides:
getDefaultDisplayName in class Expr