public class CompileContext extends Object
Modifier and Type | Method | Description |
---|---|---|
void |
addLocalCount(int count) |
|
void |
addStackCount(int count) |
|
void |
compileBooleanConversion(Type fromType,
Type toType) |
|
void |
compileBox(Type toType) |
box a value belonging to a primitive type
|
void |
compileCheckCast(Type toType) |
|
void |
compileNumericConversion(Type fromType,
Type toType) |
|
void |
compileObjectConversion(Type fromType,
Type toType) |
|
void |
compilePrimitiveConversion(Type fromType,
Type toType) |
compile code to convert a numeric or character primitive to a numeric or character primitive
|
void |
compileStringConversion(Type fromType,
Type toType) |
|
void |
compileTypeConversion(Type fromType,
Type toType) |
|
void |
compileUnbox(Type fromType,
Type toType) |
compile code to convert a value of a boxed type to a primitive type, possibly not the immediately
related primitive type
|
int |
getLocalCount() |
|
int |
getLocalMax() |
|
int |
getSourceLine() |
|
int |
getStackCount() |
|
int |
getStackMax() |
|
void |
notifySourceEnd() |
|
void |
notifySourceLine(int line) |
public int getSourceLine()
public int getStackCount()
public int getLocalCount()
public int getStackMax()
public int getLocalMax()
public void addStackCount(int count)
public void addLocalCount(int count)
public void notifySourceLine(int line)
public void notifySourceEnd()
public void compileUnbox(Type fromType, Type toType)
fromType
- the type of the value to be unboxedtoType
- he type required after unboxingpublic void compileBox(Type toType)
toType
- the type required after boxingpublic void compilePrimitiveConversion(Type fromType, Type toType)
fromType
- the type of the value to be convertedtoType
- the type required after conversionpublic void compileCheckCast(Type toType)
Copyright © 2018. All rights reserved.