Package org.codehaus.janino
Class Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.AbstractCompilationUnit.ImportDeclaration
-
- org.codehaus.janino.Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration
-
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
- Java.AbstractCompilationUnit
public static class Java.AbstractCompilationUnit.StaticImportOnDemandDeclaration extends Java.AbstractCompilationUnit.ImportDeclaration
Represents a static-import-on-demand declaration likeimport static java.util.Collections.*;
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]
identifiers
The identifiers that constitute the type to import from, e.g.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description StaticImportOnDemandDeclaration(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
-
StaticImportOnDemandDeclaration
public StaticImportOnDemandDeclaration(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
-
-