org.aspectj.compiler.base.ast
Class StringLiteralExpr

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.StringLiteralExpr
All Implemented Interfaces:
MajPrimaryExpr

public class StringLiteralExpr
extends LiteralExpr


Field Summary
protected  java.lang.String stringValue
           
 
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 StringLiteralExpr(SourceLocation source)
           
  StringLiteralExpr(SourceLocation source, java.lang.String _stringValue)
           
  StringLiteralExpr(SourceLocation location, Type _type, java.lang.String _value, java.lang.String _stringValue)
           
  StringLiteralExpr(java.lang.String _value)
           
 
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()
           
 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.
 void setStringValue(java.lang.String _stringValue)
           
 Expr toExpr()
           
 
Methods inherited from class org.aspectj.compiler.base.ast.LiteralExpr
canBeCopied, cgEffect, cgValue, discoverType, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getType, getValue, isUltimatelyLiteral, makeReference, setType, setValue, unparse
 
Methods inherited from class org.aspectj.compiler.base.ast.Expr
assertType, cgBuffer, cgTest, checkSpec, cleanup, isAssignableTo, isConstantFalse, isConstantTrue, isConstantZero, 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

stringValue

protected java.lang.String stringValue
Constructor Detail

StringLiteralExpr

public StringLiteralExpr(SourceLocation source,
                         java.lang.String _stringValue)

StringLiteralExpr

public StringLiteralExpr(SourceLocation location,
                         Type _type,
                         java.lang.String _value,
                         java.lang.String _stringValue)

StringLiteralExpr

public StringLiteralExpr(java.lang.String _value)

StringLiteralExpr

protected StringLiteralExpr(SourceLocation source)
Method Detail

toExpr

public Expr toExpr()

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

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

setStringValue

public void setStringValue(java.lang.String _stringValue)

copyWalk

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

getDefaultDisplayName

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