dotty.tools.dotc.parsing.JavaParsers

JavaParser

Related Doc: package JavaParsers

class JavaParser extends ParserCommon

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JavaParser
  2. ParserCommon
  3. DotClass
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaParser(source: SourceFile)(implicit ctx: Context)

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. 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.

    returns

    The offset at the start of the token to accept

  5. def acceptClosingAngle(): Unit

  6. def addCompanionObject(statics: List[ast.untpd.Tree], cdef: ast.untpd.TypeDef): List[ast.untpd.Tree]

  7. def annotation(): Unit

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

  8. def annotationDecl(start: Offset, mods: Modifiers): List[ast.untpd.Tree]

  9. def annotationParents: List[ast.untpd.Select]

  10. def annotations(): List[ast.untpd.Tree]

  11. def arrayOf(tpt: ast.untpd.Tree): ast.untpd.AppliedTypeTree

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def atPos[T <: Positioned](start: Offset)(t: T): T

    Definition Classes
    ParserCommon
  14. def atPos[T <: Positioned](start: Offset, point: Offset)(t: T): T

    If the last read offset is strictly greater than start, position tree to position spanning from start to last read offset, with given point.

    If the last read offset is strictly greater than start, position tree to position spanning from start to last read offset, with given point. If the last offset is less than or equal to start, the tree t did not consume any source for its construction. In this case, don't position it yet, but wait for its position to be determined by setChildPositions when the parent node is positioned.

    Definition Classes
    ParserCommon
  15. def atPos[T <: Positioned](start: Offset, point: Offset, end: Offset)(t: T): T

    Definition Classes
    ParserCommon
  16. def atPos[T <: Positioned](pos: Position)(t: T): T

    Positions tree.

    Positions tree. If t does not have a position yet, set its position to the given one.

    Definition Classes
    ParserCommon
  17. def basicType(): ast.untpd.Tree

  18. def bound(): ast.untpd.Tree

  19. def classDecl(start: Offset, mods: Modifiers): List[ast.untpd.Tree]

  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def compilationUnit(): ast.untpd.Tree

    CompilationUnit ::= [package QualId semi] TopStatSeq

  22. def convertToTypeId(tree: ast.untpd.Tree): ast.untpd.Tree

    Convert (qual)ident to type identifier

  23. def convertToTypeName(tree: ast.untpd.Tree): Option[ast.untpd.RefTree]

    Translate names in Select/Ident nodes to type names.

  24. def definesInterface(token: Int): Boolean

  25. val definitions: Definitions

  26. def enumConst(enumType: ast.untpd.Tree): ValDef[Null]

  27. def enumDecl(start: Offset, mods: Modifiers): List[ast.untpd.Tree]

  28. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  30. def errorTypeTree: TypeTree[Type]

  31. def fieldDecls(start: Offset, firstNameOffset: Offset, mods: Modifiers, tpt: ast.untpd.Tree, name: Name): List[ast.untpd.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.

  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def formalParam(): ast.untpd.ValDef

  34. def formalParams(): List[ast.untpd.ValDef]

  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

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

  38. def identForType(): TypeName

  39. def importCompanionObject(cdef: ast.untpd.TypeDef): ast.untpd.Tree

  40. def importDecl(): List[ast.untpd.Tree]

  41. val in: JavaScanner

    Definition Classes
    JavaParserParserCommon
  42. def interfaceDecl(start: Offset, mods: Modifiers): List[ast.untpd.Tree]

  43. def interfacesOpt(): List[ast.untpd.Tree]

  44. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  45. def javaDot(name: Name): ast.untpd.Tree

  46. def javaLangDot(name: Name): ast.untpd.Tree

  47. def javaLangObject(): ast.untpd.Tree

  48. var lastErrorOffset: Int

    The offset where the last syntax error was reported, or if a skip to a safepoint occurred afterwards, the offset of the safe point.

    The offset where the last syntax error was reported, or if a skip to a safepoint occurred afterwards, the offset of the safe point.

    Attributes
    protected
    Definition Classes
    ParserCommon
  49. def makeCompanionObject(cdef: ast.untpd.TypeDef, statics: List[ast.untpd.Tree]): ast.untpd.Tree

  50. def makeConstructor(formals: List[ast.untpd.Tree], tparams: List[ast.untpd.TypeDef], flags: FlagSet = Flags.JavaDefined): DefDef[Null]

  51. def makeParam(name: TermName, tpt: ast.untpd.Tree): ast.untpd.ValDef

  52. def makeSyntheticParam(count: Int, tpt: ast.untpd.Tree): ast.untpd.ValDef

  53. def makeTemplate(parents: List[ast.untpd.Tree], stats: List[ast.untpd.Tree], tparams: List[ast.untpd.TypeDef], needsDummyConstr: Boolean): ast.untpd.Template

  54. def memberDecl(start: Offset, mods: Modifiers, parentToken: Int, parentTParams: List[ast.untpd.TypeDef]): List[ast.untpd.Tree]

  55. def methodBody(): ast.untpd.Tree

  56. def modifiers(inInterface: Boolean): Modifiers

  57. def nameStart: Offset

    Definition Classes
    ParserCommon
  58. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  61. def optArrayBrackets(tpt: ast.untpd.Tree): ast.untpd.Tree

  62. def optThrows(): Unit

  63. def parse(): ast.untpd.Tree

    This is the general parse entry point.

    This is the general parse entry point. Overridden by ScriptParser

  64. def qualId(): ast.untpd.RefTree

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

  66. def scalaAnnotationDot(name: Name): ast.untpd.Select

  67. def skip(): Unit

    Attributes
    protected
  68. def skipAhead(): Unit

    skip parent or brace enclosed sequence of things

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

  70. val source: SourceFile

    Definition Classes
    ParserCommon
  71. def sourcePos(off: Int = in.offset): SourcePosition

    Definition Classes
    ParserCommon
  72. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

  75. def syntaxError(msg: ⇒ Message, pos: Position): Unit

    Unconditionally issue an error at given position, without updating lastErrorOffset.

    Unconditionally issue an error at given position, without updating lastErrorOffset.

    Definition Classes
    ParserCommon
  76. def syntaxError(msg: ⇒ Message, offset: Int = in.offset): Unit

    Issue an error at given offset if beyond last error offset and update lastErrorOffset.

    Issue an error at given offset if beyond last error offset and update lastErrorOffset.

    Definition Classes
    ParserCommon
  77. def termDecl(start: Offset, mods: Modifiers, parentToken: Int, parentTParams: List[ast.untpd.TypeDef]): List[ast.untpd.Tree]

  78. def toString(): String

    Definition Classes
    AnyRef → Any
  79. def typ(): ast.untpd.Tree

  80. def typeArgs(t: ast.untpd.Tree): ast.untpd.Tree

  81. def typeBody(leadingToken: Int, parentName: Name, parentTParams: List[ast.untpd.TypeDef]): (List[ast.untpd.Tree], List[ast.untpd.Tree])

  82. def typeBodyDecls(parentToken: Int, parentName: Name, parentTParams: List[ast.untpd.TypeDef]): (List[ast.untpd.Tree], List[ast.untpd.Tree])

  83. def typeDecl(start: Offset, mods: Modifiers): List[ast.untpd.Tree]

  84. def typeParam(flags: FlagSet): ast.untpd.TypeDef

  85. def typeParams(flags: FlagSet = ...): List[ast.untpd.TypeDef]

  86. def unimplementedExpr: ast.untpd.Ident

  87. def unsupported(methodName: String): Nothing

    Throws an UnsupportedOperationException with the given method name.

    Throws an UnsupportedOperationException with the given method name.

    Definition Classes
    DotClass
  88. def varDecl(mods: Modifiers, tpt: ast.untpd.Tree, name: TermName): ast.untpd.ValDef

  89. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ParserCommon

Inherited from DotClass

Inherited from AnyRef

Inherited from Any

Ungrouped