| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
H2JVM.Type
Description
Types representing JVM types, such as field types and class info types.
Synopsis
Documentation
data ClassInfoType Source #
JVM class info type. Corresponds roughly to §4.2.1 of the JVM specification.
Used in places such as the constant pool and exception tables.
Isomorphic to FieldType, however converted to different low level representations (see classInfoTypeDescriptor).
Constructors
| ClassInfoType QualifiedClassName | |
| PrimitiveClassInfoType PrimitiveType | |
| ArrayClassInfoType ClassInfoType |
Instances
data PrimitiveType Source #
JVM primitive types.
Corresponds to the BaseType production in the JVM specification.
Instances
JVM field type, corresponding to the FieldType production in the JVM specification.
Used in places such as method descriptors and field descriptors.
Constructors
| PrimitiveFieldType PrimitiveType | |
| ObjectFieldType QualifiedClassName | |
| ArrayFieldType FieldType |
Instances
| Data FieldType Source # | |
Defined in H2JVM.Type Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FieldType -> c FieldType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FieldType # toConstr :: FieldType -> Constr # dataTypeOf :: FieldType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FieldType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FieldType) # gmapT :: (forall b. Data b => b -> b) -> FieldType -> FieldType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FieldType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FieldType -> r # gmapQ :: (forall d. Data d => d -> u) -> FieldType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FieldType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FieldType -> m FieldType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldType -> m FieldType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldType -> m FieldType # | |
| Show FieldType Source # | |
| Eq FieldType Source # | |
| Ord FieldType Source # | |
| Pretty FieldType Source # | |
fieldTypeToClassInfoType :: FieldType -> ClassInfoType Source #
Convert a FieldType to a ClassInfoType
classInfoTypeToFieldType :: ClassInfoType -> FieldType Source #
Convert a ClassInfoType to a FieldType.