language-java-0.2.9: Java source manipulation

Safe HaskellSafe
LanguageHaskell98

Language.Java.Pretty

Documentation

class Pretty a where Source #

Methods

pretty :: a -> Doc Source #

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

Instances

Pretty AssignOp Source # 
Pretty Op Source # 

Methods

pretty :: Op -> Doc Source #

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

Pretty Literal Source # 
Pretty Name Source # 
Pretty Ident Source # 
Pretty TypeParam Source # 
Pretty PrimType Source # 
Pretty WildcardBound Source # 
Pretty Diamond Source # 
Pretty TypeDeclSpecifier Source # 
Pretty TypeArgument Source # 
Pretty ClassType Source # 
Pretty RefType Source # 
Pretty Type Source # 
Pretty ArrayInit Source # 
Pretty MethodInvocation Source # 
Pretty LambdaExpression Source # 
Pretty LambdaParams Source # 
Pretty FieldAccess Source # 
Pretty ArrayIndex Source # 
Pretty Lhs Source # 

Methods

pretty :: Lhs -> Doc Source #

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

Pretty Exp Source # 

Methods

pretty :: Exp -> Doc Source #

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

Pretty ForInit Source # 
Pretty SwitchLabel Source # 
Pretty SwitchBlock Source # 
Pretty Catch Source # 
Pretty Stmt Source # 
Pretty BlockStmt Source # 
Pretty Block Source # 
Pretty ElementValue Source # 
Pretty Annotation Source # 
Pretty Modifier Source # 
Pretty ExplConstrInv Source # 
Pretty ConstructorBody Source # 
Pretty MethodBody Source # 
Pretty FormalParam Source # 
Pretty VarInit Source # 
Pretty VarDeclId Source # 
Pretty VarDecl Source # 
Pretty MemberDecl Source # 
Pretty Decl Source # 
Pretty InterfaceBody Source # 
Pretty InterfaceDecl Source # 
Pretty EnumConstant Source # 
Pretty EnumBody Source # 
Pretty ClassBody Source # 
Pretty ClassDecl Source # 
Pretty TypeDecl Source # 
Pretty ImportDecl Source # 
Pretty PackageDecl Source # 
Pretty CompilationUnit Source # 

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

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

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

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

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

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