|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
ExtensionInfo | Extension information for the PAO extension. |
Topics | Additional report topics for the PAO extension. |
Version | Version information for PAO extension |
"Primitives as Objects" (PAO) extension. Primitive types (e.g.,
int
, float
, etc.) may be used as subtypes
of Object
.
To implement this functionality, this extension has the following key components:
polyglot.ext.pao.parse
modifies the grammar to allow primitive types to occur in
instanceof
expressions.
polyglot.ext.pao.ast
provides
factories to create appropriate extension and delegate objects for the
AST nodes.
polyglot.ext.pao.extension
provides appropriate extension and delegate objects for the AST nodes.
polyglot.ext.pao.types
modifies the type system to allow primitives to be used as subtypes
of Object
.
polyglot.ext.pao.visit
adds a new pass
polyglot.ext.pao.visit.PaoBoxer
to add boxing and unboxing code to allow primitive values to be
treated as objects at runtime.
polyglot.ext.pao.runtime
provides the runtime support classes needed by PAO. These classes are
used at runtime to box primitive values. These classes must be on the
classpath when running programs compiled with the PAO compiler.
ExtensionInfo
provides information about this extension to the Polyglot compiler.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |