Package org.codehaus.janino
Class Java.AbstractCompilationUnit.SingleTypeImportDeclaration
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.AbstractCompilationUnit.ImportDeclaration
-
- org.codehaus.janino.Java.AbstractCompilationUnit.SingleTypeImportDeclaration
-
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
- Java.AbstractCompilationUnit
public static class Java.AbstractCompilationUnit.SingleTypeImportDeclaration extends Java.AbstractCompilationUnit.ImportDeclaration
Represents a "single-type import declaration" like "import java.util.Map;
".
-
-
Field Summary
Fields Modifier and Type Field Description String[]
identifiers
The identifiers that constitute the type to be imported, e.g.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description SingleTypeImportDeclaration(Location location, String[] identifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends Throwable>
Raccept(Visitor.ImportVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ImportVisitor
for the concreteJava.AbstractCompilationUnit.ImportDeclaration
type.String
toString()
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Field Detail
-
identifiers
public final String[] identifiers
The identifiers that constitute the type to be imported, e.g. "java", "util", "Map".
-
-
Method Detail
-
accept
@Nullable public final <R,EX extends Throwable> R accept(Visitor.ImportVisitor<R,EX> visitor) throws EX extends Throwable
Description copied from class:Java.AbstractCompilationUnit.ImportDeclaration
Invokes the "visit...()
" method ofVisitor.ImportVisitor
for the concreteJava.AbstractCompilationUnit.ImportDeclaration
type.- Specified by:
accept
in classJava.AbstractCompilationUnit.ImportDeclaration
- Throws:
EX extends Throwable
-
-