Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Language.Java.SyntaxClasses
Contents
- class HasType a where
- class CollectTypes a where
- class HasBody a l where
- getTypeFromPackage :: Package -> Type
- class HasNode el no where
Documentation
class HasType a where Source #
Minimal complete definition
Instances
HasType PrimType Source # | |
HasType RefType Source # | |
HasType Type Source # | |
HasType (ExceptionType l) Source # | |
HasType (FormalParam l) Source # | Gets type of FormalParam |
HasType (InterfaceDecl l) Source # | Get type of InterfaceDecl |
HasType (EnumConstant l) Source # | Get type of EnumConstant |
HasType (Implements l) Source # | |
HasType (Extends l) Source # | |
HasType (EnumDecl l) Source # | |
HasType (ClassDecl l) Source # | |
HasType (ImportDecl l) Source # | |
HasType (ClassDeclNode l) Source # | Get type of ClassDecl |
HasType (TypeDeclNode l) Source # | Get type of TypeDeclNode |
class CollectTypes a where Source #
Minimal complete definition
Methods
collectTypes :: a -> [Type] Source #
Instances
HasType a => CollectTypes [a] Source # | |
CollectTypes (MethodDecl l) Source # | |
CollectTypes (FieldDecl l) Source # | Get type of MemberDecl if it is a MethodDecl (our solution to handeling the Maybe) |
CollectTypes (InterfaceDecl l) Source # | |
CollectTypes (EnumDecl l) Source # | |
CollectTypes (ClassDecl l) Source # | |
CollectTypes (MemberDeclNode l) Source # | Get type of MemberDecl if it is a MethodDecl (our solution to handeling the Maybe) |
CollectTypes (ClassDeclNode l) Source # | |
CollectTypes (TypeDeclNode l) Source # | |
class HasBody a l where Source #
Provides functionality to access the body as a list of declarations of a class, enum and an interface.
Minimal complete definition
Instances
HasBody (InterfaceBody l) l Source # | Get the body of ClassDecl |
HasBody (InterfaceDecl l) l Source # | Get the body of InterfaceDecl |
HasBody (EnumBody l) l Source # | Get the body of EnumBody |
HasBody (ClassBody l) l Source # | Get the body of ClassBody |
HasBody (EnumDecl l) l Source # | |
HasBody (ClassDecl l) l Source # | Get the body of ClassDecl |
HasBody (ClassDeclNode l) l Source # | Get the body of ClassDecl |
HasBody (TypeDeclNode l) l Source # | Get the body of TypeDecl |
getTypeFromPackage :: Package -> Type Source #
class HasNode el no where Source #
Minimal complete definition
Instances
Orphan instances
Eq l => Ord (MemberDeclNode l) Source # | |