scala.tools.nsc.javac.JavaParsers

JavaParser

abstract class JavaParser extends ParserCommon

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. abstract def deprecationWarning(off: Int, msg: String): Unit

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

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

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

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

    Attributes
    protected
  6. abstract val in: JavaScanner

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

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

Concrete Value Members

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

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

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

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

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

    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. final def asInstanceOf[T0]: T0

    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. final def eq(arg0: AnyRef): Boolean

    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. final def getClass(): Class[_]

    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. final def inBraces[T](body: ⇒ T): T

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

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

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

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  43. final def inBrackets[T](body: ⇒ T): T

    Definition Classes
    ParserCommon
    Annotations
    @inline()
  44. final 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
    Annotations
    @inline()
  45. final def inParensOrError[T](body: ⇒ T, alt: T): T

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

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

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

  49. def interfacesOpt(): List[Tree]

  50. final def isInstanceOf[T0]: Boolean

    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: TermName, tpt: Tree): ValDef

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

  59. final 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
    Annotations
    @inline()
  60. def makeSyntheticParam(count: Int, tpt: Tree): ValDef

  61. def makeTemplate(parents: List[Tree], stats: List[Tree]): Template

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

  63. def methodBody(): Tree

  64. def modifiers(inInterface: Boolean): Modifiers

  65. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  66. final def notify(): Unit

    Definition Classes
    AnyRef
  67. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  68. def optArrayBrackets(tpt: Tree): Tree

  69. def optThrows(): Unit

  70. def parse(): Tree

    this is the general parse method

  71. def posToReport: Int

    Attributes
    protected
  72. def qualId(): RefTree

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

  74. def skip(): Unit

    Attributes
    protected
  75. def skipAhead(): Unit

    skip parent or brace enclosed sequence of things

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

  77. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

  81. def toString(): String

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

  83. def typeArgs(t: Tree): Tree

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

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

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

  87. def typeParam(): TypeDef

  88. def typeParams(): List[TypeDef]

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

  90. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  93. def warning(msg: String): Unit

Inherited from ParserCommon

Inherited from AnyRef

Inherited from Any