|
||||||||||
| 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.NumberLiteral
org.eclipse.jdt.internal.compiler.ast.IntLiteral
public class IntLiteral
| Field Summary | |
|---|---|
static IntLiteral |
One
|
int |
value
|
| Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
|---|
constant, implicitConversion, resolvedType, statementEnd |
| Constructor Summary | |
|---|---|
IntLiteral(char[] token,
int s,
int e)
|
|
IntLiteral(char[] token,
int s,
int e,
int value)
|
|
IntLiteral(int intValue)
|
|
| Method Summary | |
|---|---|
void |
computeConstant()
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Code generation for int literal |
TypeBinding |
literalType(BlockScope scope)
|
boolean |
mayRepresentMIN_VALUE()
|
java.lang.StringBuffer |
printExpression(int indent,
java.lang.StringBuffer output)
|
TypeBinding |
resolveType(BlockScope scope)
Resolve the type of this expression in the context of a blockScope |
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.NumberLiteral |
|---|
isValidJavaStatement, source |
| Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Literal |
|---|
analyseCode |
| Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
|---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, 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 |
| Field Detail |
|---|
public int value
public static final IntLiteral One
| Constructor Detail |
|---|
public IntLiteral(char[] token,
int s,
int e)
public IntLiteral(char[] token,
int s,
int e,
int value)
public IntLiteral(int intValue)
| Method Detail |
|---|
public void computeConstant()
computeConstant in class Literal
public void generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
generateCode in class ExpressioncurrentScope - org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream - org.eclipse.jdt.internal.compiler.codegen.CodeStreamvalueRequired - booleanpublic TypeBinding literalType(BlockScope scope)
literalType in class Literalpublic final boolean mayRepresentMIN_VALUE()
public TypeBinding resolveType(BlockScope scope)
Expression
resolveType in class Literal
public java.lang.StringBuffer printExpression(int indent,
java.lang.StringBuffer output)
printExpression 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 | |||||||||