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 java.lang.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, java.lang.String[] identifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(Visitor.ImportVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ImportVisitor
for the concreteJava.AbstractCompilationUnit.ImportDeclaration
type.java.lang.String
toString()
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Constructor Detail
-
SingleTypeImportDeclaration
public SingleTypeImportDeclaration(Location location, java.lang.String[] identifiers)
-
-
Method Detail
-
accept
@Nullable public final <R,EX extends java.lang.Throwable> R accept(Visitor.ImportVisitor<R,EX> visitor) throws EX extends java.lang.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 java.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-