org.aspectj.compiler.crosscuts.ast
Class BinaryPcd

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.BinaryPcd
Direct Known Subclasses:
AndPcd, OrPcd

public abstract class BinaryPcd
extends Pcd


Field Summary
protected  Pcd pcd1
           
protected  Pcd pcd2
           
 
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 BinaryPcd(SourceLocation source)
           
  BinaryPcd(SourceLocation location, Pcd _pcd1, Pcd _pcd2)
           
 
Method Summary
 void checkStatic()
          This should call "showNonStaticError()" for any Pcd that can not be used for purely static matching.
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 java.lang.String getDefaultDisplayName()
           
 Pcd getPcd1()
           
 Pcd getPcd2()
           
protected abstract  java.lang.String getSymbol()
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setPcd1(Pcd _pcd1)
           
 void setPcd2(Pcd _pcd2)
           
 java.lang.String toShortString()
           
 
Methods inherited from class org.aspectj.compiler.crosscuts.ast.Pcd
allowsNameBinding, discoverType, makePlanner, 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, copyWalk, 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, 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, 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

pcd1

protected Pcd pcd1

pcd2

protected Pcd pcd2
Constructor Detail

BinaryPcd

public BinaryPcd(SourceLocation location,
                 Pcd _pcd1,
                 Pcd _pcd2)

BinaryPcd

protected BinaryPcd(SourceLocation source)
Method Detail

getSymbol

protected abstract java.lang.String getSymbol()

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

getPcd1

public Pcd getPcd1()

setPcd1

public void setPcd1(Pcd _pcd1)

getPcd2

public Pcd getPcd2()

setPcd2

public void setPcd2(Pcd _pcd2)

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