org.aspectj.compiler.base.ast
Class IntLiteralExpr

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.base.ast.JavaExpr
                  extended byorg.aspectj.compiler.base.ast.LiteralExpr
                      extended byorg.aspectj.compiler.base.ast.NumericLiteralExpr
                          extended byorg.aspectj.compiler.base.ast.IntLiteralExpr
All Implemented Interfaces:
MajPrimaryExpr

public class IntLiteralExpr
extends NumericLiteralExpr


Field Summary
protected  int intValue
           
 
Fields inherited from class org.aspectj.compiler.base.ast.LiteralExpr
type, value
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
protected IntLiteralExpr()
           
  IntLiteralExpr(int _intValue)
           
protected IntLiteralExpr(SourceLocation source)
           
  IntLiteralExpr(SourceLocation source, int _intValue)
           
  IntLiteralExpr(SourceLocation source, Type type, int _intValue)
           
  IntLiteralExpr(SourceLocation location, Type _type, java.lang.String _value, int _intValue)
           
  IntLiteralExpr(Type type, int _intValue)
           
  IntLiteralExpr(Type _type, java.lang.String _value, int _intValue)
           
 
Method Summary
 void addConstant(org.aspectj.compiler.base.bcg.FieldBuilder fb)
           
protected  void cgValue(org.aspectj.compiler.base.bcg.CodeBuilder cb)
          Leaves the value of this expression on the stack.
 ASTObject copyWalk(CopyWalker walker)
           
 java.lang.String getDefaultDisplayName()
           
 double getDoubleValue()
           
 float getFloatValue()
           
 int getIntValue()
           
 long getLongValue()
           
 java.lang.String getStringValue()
          Return a string representing the Literal expr, NOT to be used for unparsing purposes, but rather the string that would be returned by the String.valueOf(char) method.
 boolean isAssignableTo(Type type)
          Normally this is a type consideration, but this is overridden by IntLiteralExpr to handle JLS 5.2's requirement that some int literals are assignable to byte, short, and char variables.
 boolean isConstantZero()
          is this expression zero or null?
 void setIntValue(int _intValue)
           
 Expr toExpr()
           
 
Methods inherited from class org.aspectj.compiler.base.ast.LiteralExpr
canBeCopied, cgEffect, cgValue, discoverType, getBooleanValue, getType, getValue, isUltimatelyLiteral, makeReference, setType, setValue, unparse
 
Methods inherited from class org.aspectj.compiler.base.ast.Expr
assertType, cgBuffer, cgTest, checkSpec, cleanup, isConstantFalse, isConstantTrue, isInConstructorCallExpr, isInExprStmt, isLegalStmt, isMethodConvertableTo, makeQualifiedThis, postCopy, 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, getChildAt, getChildCount, getChildNameAt, 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, setChildAt, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toShortString, toString, unparse, 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
 
Methods inherited from interface org.aspectj.compiler.base.ast.MajPrimaryExpr
unparse
 

Field Detail

intValue

protected int intValue
Constructor Detail

IntLiteralExpr

public IntLiteralExpr(SourceLocation source,
                      int _intValue)

IntLiteralExpr

public IntLiteralExpr(SourceLocation source,
                      Type type,
                      int _intValue)

IntLiteralExpr

public IntLiteralExpr(int _intValue)

IntLiteralExpr

public IntLiteralExpr(Type type,
                      int _intValue)

IntLiteralExpr

public IntLiteralExpr(SourceLocation location,
                      Type _type,
                      java.lang.String _value,
                      int _intValue)

IntLiteralExpr

protected IntLiteralExpr(SourceLocation source)

IntLiteralExpr

public IntLiteralExpr(Type _type,
                      java.lang.String _value,
                      int _intValue)

IntLiteralExpr

protected IntLiteralExpr()
Method Detail

toExpr

public Expr toExpr()

getLongValue

public long getLongValue()
Overrides:
getLongValue in class LiteralExpr

getFloatValue

public float getFloatValue()
Overrides:
getFloatValue in class LiteralExpr

getDoubleValue

public double getDoubleValue()
Overrides:
getDoubleValue in class LiteralExpr

getStringValue

public java.lang.String getStringValue()
Description copied from class: LiteralExpr
Return a string representing the Literal expr, NOT to be used for unparsing purposes, but rather the string that would be returned by the String.valueOf(char) method.

Specified by:
getStringValue in class LiteralExpr

isAssignableTo

public boolean isAssignableTo(Type type)
Description copied from class: Expr
Normally this is a type consideration, but this is overridden by IntLiteralExpr to handle JLS 5.2's requirement that some int literals are assignable to byte, short, and char variables.

Overrides:
isAssignableTo in class Expr

cgValue

protected void cgValue(org.aspectj.compiler.base.bcg.CodeBuilder cb)
Description copied from class: Expr
Leaves the value of this expression on the stack. May self-call Expr.cgTest(CodeBuilder, Label, Label).

Overrides:
cgValue in class Expr

addConstant

public void addConstant(org.aspectj.compiler.base.bcg.FieldBuilder fb)
Specified by:
addConstant in class LiteralExpr

isConstantZero

public boolean isConstantZero()
Description copied from class: Expr
is this expression zero or null?

Overrides:
isConstantZero in class Expr

getIntValue

public int getIntValue()
Overrides:
getIntValue in class LiteralExpr

setIntValue

public void setIntValue(int _intValue)

copyWalk

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

getDefaultDisplayName

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