language-java-0.2.9: Java source manipulation
Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Java.Pretty

Documentation

prettyPrint :: Pretty a => a -> String Source #

parenPrec :: Int -> Int -> Doc -> Doc Source #

class Pretty a where Source #

Minimal complete definition

Nothing

Methods

pretty :: a -> Doc Source #

prettyPrec :: Int -> a -> Doc Source #

Instances

Instances details
Pretty AssignOp Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: AssignOp -> Doc Source #

prettyPrec :: Int -> AssignOp -> Doc Source #

Pretty Op Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Op -> Doc Source #

prettyPrec :: Int -> Op -> Doc Source #

Pretty Literal Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Literal -> Doc Source #

prettyPrec :: Int -> Literal -> Doc Source #

Pretty Name Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Name -> Doc Source #

prettyPrec :: Int -> Name -> Doc Source #

Pretty Ident Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Ident -> Doc Source #

prettyPrec :: Int -> Ident -> Doc Source #

Pretty TypeParam Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: TypeParam -> Doc Source #

prettyPrec :: Int -> TypeParam -> Doc Source #

Pretty PrimType Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: PrimType -> Doc Source #

prettyPrec :: Int -> PrimType -> Doc Source #

Pretty WildcardBound Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: WildcardBound -> Doc Source #

prettyPrec :: Int -> WildcardBound -> Doc Source #

Pretty Diamond Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Diamond -> Doc Source #

prettyPrec :: Int -> Diamond -> Doc Source #

Pretty TypeDeclSpecifier Source # 
Instance details

Defined in Language.Java.Pretty

Pretty TypeArgument Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: TypeArgument -> Doc Source #

prettyPrec :: Int -> TypeArgument -> Doc Source #

Pretty ClassType Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ClassType -> Doc Source #

prettyPrec :: Int -> ClassType -> Doc Source #

Pretty RefType Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: RefType -> Doc Source #

prettyPrec :: Int -> RefType -> Doc Source #

Pretty Type Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Type -> Doc Source #

prettyPrec :: Int -> Type -> Doc Source #

Pretty ArrayInit Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ArrayInit -> Doc Source #

prettyPrec :: Int -> ArrayInit -> Doc Source #

Pretty MethodInvocation Source # 
Instance details

Defined in Language.Java.Pretty

Pretty LambdaExpression Source # 
Instance details

Defined in Language.Java.Pretty

Pretty LambdaParams Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: LambdaParams -> Doc Source #

prettyPrec :: Int -> LambdaParams -> Doc Source #

Pretty FieldAccess Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: FieldAccess -> Doc Source #

prettyPrec :: Int -> FieldAccess -> Doc Source #

Pretty ArrayIndex Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ArrayIndex -> Doc Source #

prettyPrec :: Int -> ArrayIndex -> Doc Source #

Pretty Lhs Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Lhs -> Doc Source #

prettyPrec :: Int -> Lhs -> Doc Source #

Pretty Exp Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Exp -> Doc Source #

prettyPrec :: Int -> Exp -> Doc Source #

Pretty ForInit Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ForInit -> Doc Source #

prettyPrec :: Int -> ForInit -> Doc Source #

Pretty SwitchLabel Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: SwitchLabel -> Doc Source #

prettyPrec :: Int -> SwitchLabel -> Doc Source #

Pretty SwitchBlock Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: SwitchBlock -> Doc Source #

prettyPrec :: Int -> SwitchBlock -> Doc Source #

Pretty Catch Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Catch -> Doc Source #

prettyPrec :: Int -> Catch -> Doc Source #

Pretty Stmt Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Stmt -> Doc Source #

prettyPrec :: Int -> Stmt -> Doc Source #

Pretty BlockStmt Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: BlockStmt -> Doc Source #

prettyPrec :: Int -> BlockStmt -> Doc Source #

Pretty Block Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Block -> Doc Source #

prettyPrec :: Int -> Block -> Doc Source #

Pretty ElementValue Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ElementValue -> Doc Source #

prettyPrec :: Int -> ElementValue -> Doc Source #

Pretty Annotation Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Annotation -> Doc Source #

prettyPrec :: Int -> Annotation -> Doc Source #

Pretty Modifier Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Modifier -> Doc Source #

prettyPrec :: Int -> Modifier -> Doc Source #

Pretty ExplConstrInv Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ExplConstrInv -> Doc Source #

prettyPrec :: Int -> ExplConstrInv -> Doc Source #

Pretty ConstructorBody Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ConstructorBody -> Doc Source #

prettyPrec :: Int -> ConstructorBody -> Doc Source #

Pretty MethodBody Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: MethodBody -> Doc Source #

prettyPrec :: Int -> MethodBody -> Doc Source #

Pretty FormalParam Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: FormalParam -> Doc Source #

prettyPrec :: Int -> FormalParam -> Doc Source #

Pretty VarInit Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: VarInit -> Doc Source #

prettyPrec :: Int -> VarInit -> Doc Source #

Pretty VarDeclId Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: VarDeclId -> Doc Source #

prettyPrec :: Int -> VarDeclId -> Doc Source #

Pretty VarDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: VarDecl -> Doc Source #

prettyPrec :: Int -> VarDecl -> Doc Source #

Pretty MemberDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: MemberDecl -> Doc Source #

prettyPrec :: Int -> MemberDecl -> Doc Source #

Pretty Decl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: Decl -> Doc Source #

prettyPrec :: Int -> Decl -> Doc Source #

Pretty InterfaceBody Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: InterfaceBody -> Doc Source #

prettyPrec :: Int -> InterfaceBody -> Doc Source #

Pretty InterfaceDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: InterfaceDecl -> Doc Source #

prettyPrec :: Int -> InterfaceDecl -> Doc Source #

Pretty EnumConstant Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: EnumConstant -> Doc Source #

prettyPrec :: Int -> EnumConstant -> Doc Source #

Pretty EnumBody Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: EnumBody -> Doc Source #

prettyPrec :: Int -> EnumBody -> Doc Source #

Pretty ClassBody Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ClassBody -> Doc Source #

prettyPrec :: Int -> ClassBody -> Doc Source #

Pretty ClassDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ClassDecl -> Doc Source #

prettyPrec :: Int -> ClassDecl -> Doc Source #

Pretty TypeDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: TypeDecl -> Doc Source #

prettyPrec :: Int -> TypeDecl -> Doc Source #

Pretty ImportDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: ImportDecl -> Doc Source #

prettyPrec :: Int -> ImportDecl -> Doc Source #

Pretty PackageDecl Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: PackageDecl -> Doc Source #

prettyPrec :: Int -> PackageDecl -> Doc Source #

Pretty CompilationUnit Source # 
Instance details

Defined in Language.Java.Pretty

Methods

pretty :: CompilationUnit -> Doc Source #

prettyPrec :: Int -> CompilationUnit -> Doc Source #

ppEVList :: (Pretty a1, Pretty a2) => Int -> [(a1, a2)] -> Doc Source #

ppArgs :: Pretty a => Int -> [a] -> Doc Source #

ppTypeParams :: Pretty a => Int -> [a] -> Doc Source #

ppImplements :: Int -> [RefType] -> Doc Source #

ppExtends :: Int -> [RefType] -> Doc Source #

ppThrows :: Int -> [ExceptionType] -> Doc Source #

ppDefault :: Int -> Maybe Exp -> Doc Source #

ppResultType :: Int -> Maybe Type -> Doc Source #

prettyNestedStmt :: Int -> Stmt -> Doc Source #

maybePP :: Pretty a => Int -> Maybe a -> Doc Source #

opt :: Bool -> Doc -> Doc Source #

braceBlock :: [Doc] -> Doc Source #

opPrec :: Num p => Op -> p Source #

escapeGeneral :: Char -> String Source #

escapeChar :: Char -> String Source #

escapeString :: Char -> String Source #