Package gnu.expr
Class StackTarget
java.lang.Object
gnu.expr.Target
gnu.expr.StackTarget
- Direct Known Subclasses:
CheckedTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Target is field or array element that automatically truncates.Fields inherited from class gnu.expr.Target
Ignore, pushObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) 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:
compileFromStack
in classTarget
-
doCoerce
-