org.aspectj.compiler.crosscuts.ast
Class MethodPattern

java.lang.Object
  extended byorg.aspectj.compiler.base.CompilerObject
      extended byorg.aspectj.compiler.base.ast.ASTObject
          extended byorg.aspectj.compiler.crosscuts.ast.DecPattern
              extended byorg.aspectj.compiler.crosscuts.ast.CodePattern
                  extended byorg.aspectj.compiler.crosscuts.ast.MethodPattern

public class MethodPattern
extends CodePattern


Field Summary
protected  FormalsPattern formalsPattern
           
protected  NamePattern id
           
protected  GenTypeName returnTypeName
           
protected  NameTypeDsPattern throwsPattern
           
 
Fields inherited from class org.aspectj.compiler.crosscuts.ast.DecPattern
declaringTypeName, modifiers
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
  MethodPattern(Modifiers _modifiers, GenTypeName _declaringTypeName, GenTypeName _returnTypeName, NamePattern _id, FormalsPattern _formalsPattern, NameTypeDsPattern _throwsPattern)
           
protected MethodPattern(SourceLocation source)
           
  MethodPattern(SourceLocation location, Modifiers _modifiers, GenTypeName _declaringTypeName, GenTypeName _returnTypeName, NamePattern _id, FormalsPattern _formalsPattern, NameTypeDsPattern _throwsPattern)
           
 
Method Summary
 void checkSpec()
           
 ASTObject copyWalk(CopyWalker walker)
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 java.lang.String getDefaultDisplayName()
           
 FormalsPattern getFormalsPattern()
           
 NamePattern getId()
           
 java.lang.String getLookupId()
           
 GenTypeName getReturnTypeName()
           
 NameTypeDsPattern getThrowsPattern()
           
 org.aspectj.util.FuzzyBoolean matches(org.aspectj.compiler.crosscuts.joinpoints.JoinPoint jp)
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setFormalsPattern(FormalsPattern _formalsPattern)
           
 void setId(NamePattern _id)
           
 void setReturnTypeName(GenTypeName _returnTypeName)
           
 void setThrowsPattern(NameTypeDsPattern _throwsPattern)
           
 java.lang.String toShortString()
           
 
Methods inherited from class org.aspectj.compiler.crosscuts.ast.CodePattern
unparse, unparse
 
Methods inherited from class org.aspectj.compiler.crosscuts.ast.DecPattern
getDeclaringTypeName, getModifiers, isStaticMatch, makeDeclaringTypeString, setDeclaringTypeName, setModifiers
 
Methods inherited from class org.aspectj.compiler.base.ast.ASTObject
addComment, buildAccessMethod, checkNoSharing, cleanup, 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, postCopy, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postScope, 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, walkCleanup, walkFlow, walkForwardReference, walkFrameLoc, 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

returnTypeName

protected GenTypeName returnTypeName

id

protected NamePattern id

formalsPattern

protected FormalsPattern formalsPattern

throwsPattern

protected NameTypeDsPattern throwsPattern
Constructor Detail

MethodPattern

public MethodPattern(SourceLocation location,
                     Modifiers _modifiers,
                     GenTypeName _declaringTypeName,
                     GenTypeName _returnTypeName,
                     NamePattern _id,
                     FormalsPattern _formalsPattern,
                     NameTypeDsPattern _throwsPattern)

MethodPattern

public MethodPattern(Modifiers _modifiers,
                     GenTypeName _declaringTypeName,
                     GenTypeName _returnTypeName,
                     NamePattern _id,
                     FormalsPattern _formalsPattern,
                     NameTypeDsPattern _throwsPattern)

MethodPattern

protected MethodPattern(SourceLocation source)
Method Detail

toShortString

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

checkSpec

public void checkSpec()
Overrides:
checkSpec in class ASTObject

getLookupId

public java.lang.String getLookupId()
Specified by:
getLookupId in class DecPattern

matches

public org.aspectj.util.FuzzyBoolean matches(org.aspectj.compiler.crosscuts.joinpoints.JoinPoint jp)
Overrides:
matches in class DecPattern

getReturnTypeName

public GenTypeName getReturnTypeName()

setReturnTypeName

public void setReturnTypeName(GenTypeName _returnTypeName)

getId

public NamePattern getId()

setId

public void setId(NamePattern _id)

getFormalsPattern

public FormalsPattern getFormalsPattern()

setFormalsPattern

public void setFormalsPattern(FormalsPattern _formalsPattern)

getThrowsPattern

public NameTypeDsPattern getThrowsPattern()

setThrowsPattern

public void setThrowsPattern(NameTypeDsPattern _throwsPattern)

copyWalk

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

getChildAt

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

getChildNameAt

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

setChildAt

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

getChildCount

public int getChildCount()
Overrides:
getChildCount in class DecPattern

getDefaultDisplayName

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