Package gnu.expr
Class StackTarget
- java.lang.Object
-
- gnu.expr.Target
-
- gnu.expr.StackTarget
-
- Direct Known Subclasses:
CheckedTarget
public class StackTarget extends Target
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
autoTruncates
Target is field or array element that automatically truncates.-
Fields inherited from class gnu.expr.Target
Ignore, pushObject
-
-
Constructor Summary
Constructors Constructor Description StackTarget(Type type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compileFromStack(Compilation comp, Type stackType)
protected boolean
compileFromStack0(Compilation comp, Type stackType)
static void
convert(Compilation comp, Type stackType, Type targetType)
protected void
doCoerce(Compilation comp)
protected static void
emitCoerceFromObject(Type type, Compilation comp)
static Type
forceLazy(Compilation comp, Type stackType, Type type)
static Type
forceLazyIfNeeded(Compilation comp, Type stackType, Type type)
protected StackTarget
getClonedInstance(Type type)
static Target
getInstance(Type type)
static Target
getTruncatingInstance(Type type)
Type
getType()
-
-
-
Constructor Detail
-
StackTarget
public StackTarget(Type type)
-
-
Method Detail
-
getClonedInstance
protected StackTarget getClonedInstance(Type type)
-
forceLazyIfNeeded
public static Type forceLazyIfNeeded(Compilation comp, Type stackType, Type type)
-
forceLazy
public static Type forceLazy(Compilation comp, Type stackType, Type type)
-
compileFromStack0
protected boolean compileFromStack0(Compilation comp, Type stackType)
-
convert
public static void convert(Compilation comp, Type stackType, Type targetType)
-
emitCoerceFromObject
protected static void emitCoerceFromObject(Type type, Compilation comp)
-
compileFromStack
public void compileFromStack(Compilation comp, Type stackType)
- Specified by:
compileFromStack
in classTarget
-
doCoerce
protected void doCoerce(Compilation comp)
-
-