net.sandrogrzicic.scalabuff

compiler

package compiler

Useful things for this package.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. compiler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class BuffedString extends AnyRef

    String extension with some useful methods.

  2. trait Enum extends AnyRef

    Viktor Klang's Enum Source: https://gist.

  3. case class EnumConstant(name: String, id: Int) extends Node with Product with Serializable

  4. case class EnumStatement(name: String, constants: List[EnumConstant], options: List[OptionValue]) extends Node with Product with Serializable

  5. case class Extension(name: String, body: MessageBody) extends Node with Product with Serializable

  6. case class ExtensionRange(from: Int, to: Int = -1) extends Node with Product with Serializable

  7. case class ExtensionRanges(list: List[ExtensionRange]) extends Node with Product with Serializable

  8. case class Field(label: EnumVal, fType: EnumVal, name: String, number: Int, options: List[OptionValue], defaultValue: String = "") extends Node with Product with Serializable

  9. class GenerationFailureException extends RuntimeException

    Thrown when a valid Scala class cannot be generated using the the tree returned from the Parser.

  10. class Generator extends AnyRef

    Scala class generator.

  11. case class Group(label: EnumVal, name: String, number: Int, body: MessageBody) extends Node with Product with Serializable

  12. case class ImportStatement(packageName: String) extends Node with Product with Serializable

  13. case class ImportedSymbol(packageName: String, isEnum: Boolean) extends Product with Serializable

  14. class InvalidOptionValueException extends GenerationFailureException

  15. case class Message(name: String, body: MessageBody) extends Node with Product with Serializable

  16. case class MessageBody(fields: List[Field], enums: List[EnumStatement], messages: List[Message], extensionRanges: List[ExtensionRanges], extensions: List[Extension], groups: List[Group], options: List[OptionValue]) extends Product with Serializable

  17. sealed abstract class Node extends AnyRef

    AST node.

  18. case class OptionValue(key: String, value: String) extends Node with Product with Serializable

  19. case class PackageStatement(packageName: String) extends Node with Product with Serializable

  20. class Parser extends RegexParsers with PackratParsers

    Main Protobuf parser.

  21. class ParsingFailureException extends RuntimeException

    Thrown when an input .

  22. class ScalaBuffException extends RuntimeException

    The root ScalaBuff RuntimeException.

  23. case class ScalaClass(body: String, path: String, file: String) extends Product with Serializable

    A generated Scala class.

  24. class UnexpectedNodeException extends GenerationFailureException

    Thrown when a Node occurs in an unexpected location in the tree.

Value Members

  1. object BuffedString

  2. object FieldLabels extends Enum

    Field labels.

  3. object FieldTypes extends Enum

    Field types; both predefined and custom types are an instance of FieldTypes.

  4. object Generator

  5. object Parser

  6. object ScalaBuff

    ScalaBuff runtime.

  7. object Strings

    Text strings.

  8. implicit def buffString(string: String): BuffedString

Inherited from AnyRef

Inherited from Any

Ungrouped