Package gnu.expr
Class StackTarget
java.lang.Object
gnu.expr.Target
gnu.expr.StackTarget
- Direct Known Subclasses:
CheckedTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanTarget is field or array element that automatically truncates.Fields inherited from class gnu.expr.Target
Ignore, pushObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompileFromStack(Compilation comp, Type stackType) protected booleancompileFromStack0(Compilation comp, Type stackType) static voidconvert(Compilation comp, Type stackType, Type targetType) protected voiddoCoerce(Compilation comp) protected static voidemitCoerceFromObject(Type type, Compilation comp) static TypeforceLazy(Compilation comp, Type stackType, Type type) static TypeforceLazyIfNeeded(Compilation comp, Type stackType, Type type) protected StackTargetgetClonedInstance(Type type) static TargetgetInstance(Type type) static TargetgetTruncatingInstance(Type type) getType()
-
Field Details
-
autoTruncates
protected boolean autoTruncatesTarget is field or array element that automatically truncates. Relevant if type is (signed or unsigned) byte or short, and the given type is an int. Hence we can avoid the truncation.
-
-
Constructor Details
-
StackTarget
-
-
Method Details
-
getType
-
getInstance
-
getTruncatingInstance
-
getClonedInstance
-
forceLazyIfNeeded
-
forceLazy
-
compileFromStack0
-
convert
-
emitCoerceFromObject
-
compileFromStack
- Specified by:
compileFromStackin classTarget
-
doCoerce
-