Skip to content

ImportDeclarations.sdf3

pdmosses/java-front/lang.java/syntax/java/packages/ImportDeclarations.sdf3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module 

// 7.5. Import Declarations

imports
  java/names/Names
  java/lexical/Identifiers

context-free sorts

  ImportDeclaration

context-free syntax

  ImportDeclaration.SingleTypeImport     = <import <TypeName>;>
  ImportDeclaration.TypeImportOnDemand   = <import <PackageOrTypeName>.*;>
  ImportDeclaration.SingleStaticImport   = <import static <TypeName>.<Id>;>
  ImportDeclaration.StaticImportOnDemand = <import static <TypeName>.*;>  

template options
  tokenize : ".;"