|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ast.ASTNode
org.eclipse.jdt.internal.compiler.ast.Statement
org.eclipse.jdt.internal.compiler.ast.Expression
org.eclipse.jdt.internal.compiler.ast.Literal
org.eclipse.jdt.internal.compiler.ast.StringLiteral
public class StringLiteral
Field Summary |
---|
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
---|
constant, implicitConversion, resolvedType, statementEnd |
Constructor Summary | |
---|---|
StringLiteral(char[] token,
int start,
int end,
int lineNumber)
|
|
StringLiteral(int s,
int e)
|
Method Summary | |
---|---|
void |
computeConstant()
|
StringLiteralConcatenation |
extendsWith(StringLiteral lit)
Add the lit source to mine, just as if it was mine |
ExtendedStringLiteral |
extendWith(CharLiteral lit)
|
ExtendedStringLiteral |
extendWith(StringLiteral lit)
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Code generation for string literal |
TypeBinding |
literalType(BlockScope scope)
|
java.lang.StringBuffer |
printExpression(int indent,
java.lang.StringBuffer output)
|
char[] |
source()
|
void |
traverse(ASTVisitor visitor,
BlockScope scope)
Traverse an expression in the context of a blockScope |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Literal |
---|
analyseCode, resolveType |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, isValidJavaStatement, resolveCase |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringLiteral(char[] token, int start, int end, int lineNumber)
public StringLiteral(int s, int e)
Method Detail |
---|
public void computeConstant()
computeConstant
in class Literal
public ExtendedStringLiteral extendWith(CharLiteral lit)
public ExtendedStringLiteral extendWith(StringLiteral lit)
public StringLiteralConcatenation extendsWith(StringLiteral lit)
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired)
generateCode
in class Expression
currentScope
- org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream
- org.eclipse.jdt.internal.compiler.codegen.CodeStreamvalueRequired
- booleanpublic TypeBinding literalType(BlockScope scope)
literalType
in class Literal
public java.lang.StringBuffer printExpression(int indent, java.lang.StringBuffer output)
printExpression
in class Literal
public char[] source()
source
in class Literal
public void traverse(ASTVisitor visitor, BlockScope scope)
Expression
traverse
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |