scala.tools.nsc.javac.JavaParsers

JavaParser

class JavaParser extends ParserCommon

Attributes
abstract
Source
JavaParsers.scala
Linear Supertypes
ParserCommon, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. JavaParser
  2. ParserCommon
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaParser ()

Abstract Value Members

  1. def deprecationWarning (off: Int, msg: String): Unit

    Attributes
    abstract
    Definition Classes
    ParserCommon
  2. def freshName (prefix: String): Name

    Attributes
    abstract
    Definition Classes
    JavaParserParserCommon
  3. def freshTermName (prefix: String): TermName

    Attributes
    abstract
    Definition Classes
    ParserCommon
  4. def freshTypeName (prefix: String): TypeName

    Attributes
    abstract
    Definition Classes
    ParserCommon
  5. implicit def i2p (offset: Int): Position

    Attributes
    protected implicit abstract
  6. val in : JavaScanner

    Attributes
    abstract
    Definition Classes
    JavaParserParserCommon
  7. def syntaxError (pos: Int, msg: String): Unit

    Attributes
    abstract
  8. def warning (pos: Int, msg: String): Unit

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def accept (token: Int): Int

    Consume one token of the specified type, or signal an error if it is not there.

    Consume one token of the specified type, or signal an error if it is not there.

    Definition Classes
    JavaParserParserCommon
  7. def acceptClosingAngle (): Unit

  8. def addCompanionObject (statics: List[Tree], cdef: ClassDef): List[Tree]

  9. def annotation (): Unit

    Annotation ::= TypeName [(' AnnotationArgument {,' AnnotationArgument} )']

  10. def annotationDecl (mods: Modifiers): List[Tree]

  11. def annotations (): List[Tree]

  12. def arrayOf (tpt: Tree): AppliedTypeTree

  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def basicType (): Tree

  15. def blankExpr : Ident

  16. def bound (): Tree

  17. def classDecl (mods: Modifiers): List[Tree]

  18. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def compilationUnit (): Tree

    CompilationUnit ::= [package QualId semi] TopStatSeq

  20. def convertToTypeId (tree: Tree): Tree

    Convert (qual)ident to type identifier

  21. def definesInterface (token: Int): Boolean

  22. def enumConst (enumType: Tree): ValDef

  23. def enumDecl (mods: Modifiers): List[Tree]

  24. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def errorPatternTree : Ident

  27. def errorTermTree : Literal

  28. def errorTypeTree : TypeTree

  29. def fieldDecls (pos: Position, mods: Modifiers, tpt: Tree, name: Name): List[Tree]

    Parse a sequence of field declarations, separated by commas.

    Parse a sequence of field declarations, separated by commas. This one is tricky because a comma might also appear in an initializer. Since we don't parse initializers we don't know what the comma signifies. We solve this with a second list buffer maybe' which contains potential variable definitions. Once we have reached the end of the statement, we know whether these potential definitions are real or not.

  30. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. def formalParam (): ValDef

  32. def formalParams (): List[ValDef]

  33. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  34. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  35. def ident (): Name

  36. def identForType (): TypeName

  37. def importCompanionObject (cdef: ClassDef): Tree

  38. def importDecl (): List[Tree]

  39. def inBraces [T] (body: ⇒ T): T

    Definition Classes
    ParserCommon
  40. def inBracesOrError [T] (body: ⇒ T, alt: T): T

    Definition Classes
    ParserCommon
  41. def inBracesOrNil [T] (body: ⇒ List[T]): List[T]

    Definition Classes
    ParserCommon
  42. def inBracesOrUnit [T] (body: ⇒ Tree): Tree

    Definition Classes
    ParserCommon
  43. def inBrackets [T] (body: ⇒ T): T

    Definition Classes
    ParserCommon
  44. def inParens [T] (body: ⇒ T): T

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.g. LPAREN) will be returned instead of the contents of the groupers. However in all cases accept(LPAREN) will be called, so a parse error will still result. If the grouping is optional, in.token should be tested before calling these methods.

    Definition Classes
    ParserCommon
  45. def inParensOrError [T] (body: ⇒ T, alt: T): T

    Definition Classes
    ParserCommon
  46. def inParensOrNil [T] (body: ⇒ List[T]): List[T]

    Definition Classes
    ParserCommon
  47. def inParensOrUnit [T] (body: ⇒ Tree): Tree

    Definition Classes
    ParserCommon
  48. def interfaceDecl (mods: Modifiers): List[Tree]

  49. def interfacesOpt (): List[Tree]

  50. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  51. def javaDot (name: Name): Tree

  52. def javaLangDot (name: Name): Tree

  53. def javaLangObject (): Tree

  54. def makeCompanionObject (cdef: ClassDef, statics: List[Tree]): Tree

  55. def makeConstructor (formals: List[Tree]): DefDef

  56. def makePackaging (pkg: RefTree, stats: List[Tree]): PackageDef

  57. def makeParam (name: String, tpt: Tree): ValDef

  58. def makeParens (body: ⇒ List[Tree]): Parens

    Creates an actual Parens node (only used during parsing.

    Creates an actual Parens node (only used during parsing.)

    Definition Classes
    ParserCommon
  59. def makeTemplate (parents: List[Tree], stats: List[Tree]): Template

  60. def memberDecl (mods: Modifiers, parentToken: Int): List[Tree]

  61. def methodBody (): Tree

  62. def modifiers (inInterface: Boolean): Modifiers

  63. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  64. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  65. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  66. def optArrayBrackets (tpt: Tree): Tree

  67. def optThrows (): Unit

  68. def parse (): Tree

    this is the general parse method

  69. def posToReport : Int

    Attributes
    protected
  70. def qualId (): RefTree

  71. def repsep [T <: Tree] (p: () ⇒ T, sep: Int): List[T]

  72. def skip (): Unit

    Attributes
    protected
  73. def skipAhead (): Unit

    skip parent or brace enclosed sequence of things

  74. def skipTo (tokens: Int*): Unit

  75. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  76. def syntaxError (pos: Int, msg: String, skipIt: Boolean): Unit

  77. def syntaxError (msg: String, skipIt: Boolean): Unit

  78. def termDecl (mods: Modifiers, parentToken: Int): List[Tree]

  79. def toString (): String

    Definition Classes
    AnyRef → Any
  80. def typ (): Tree

  81. def typeArgs (t: Tree): Tree

  82. def typeBody (leadingToken: Int, parentName: Name): (List[Tree], List[Tree])

  83. def typeBodyDecls (parentToken: Int, parentName: Name): (List[Tree], List[Tree])

  84. def typeDecl (mods: Modifiers): List[Tree]

  85. def typeParam (): TypeDef

  86. def typeParams (): List[TypeDef]

  87. def varDecl (pos: Position, mods: Modifiers, tpt: Tree, name: TermName): ValDef

  88. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  89. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  90. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  91. def warning (msg: String): Unit

Inherited from ParserCommon

Inherited from AnyRef

Inherited from Any