public abstract class MainClassFinder extends ObjectSE
public static main メソッドを持つクラスを検索します。| コンストラクターと説明 |
|---|
MainClassFinder() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static StringSE | findMainClass(FileSE rootFolder) 指定されたフォルダーからメインクラスを見つけます。 |
static StringSE | findMainClass(JarFileSE jarFile, StringSE classesLocation) 指定された jar ファイルでメインクラスを検索します。 |
static StringSE | findSingleMainClass(FileSE rootFolder) 指定された rootFolder から単一のメインクラスを検索します。 |
static StringSE | findSingleMainClass(FileSE rootFolder, StringSE annotationName) 指定された rootFolder から単一のメインクラスを検索します。 |
static StringSE | findSingleMainClass(JarFileSE jarFile, StringSE classesLocation) 特定の jar ファイルで単一のメインクラスを検索します。 |
static StringSE | findSingleMainClass(JarFileSE jarFile, StringSE classesLocation, StringSE annotationName) 特定の jar ファイルで単一のメインクラスを検索します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static StringSE findMainClass(FileSE rootFolder) throws IOExceptionSE
rootFolder - 検索するルートフォルダー nullIOExceptionSE - フォルダーが読み取れない場合 public static StringSE findSingleMainClass(FileSE rootFolder) throws IOExceptionSE
rootFolder から単一のメインクラスを検索します。rootFolder - 検索するルートフォルダー nullIOExceptionSE - フォルダーが読み取れない場合 public static StringSE findSingleMainClass(FileSE rootFolder, StringSE annotationName) throws IOExceptionSE
rootFolder から単一のメインクラスを検索します。指定された annotationName のアノテーションが付けられたメインクラスは、そのようなアノテーションのないメインクラスよりも優先されます。rootFolder - 検索するルートフォルダー annotationName - メインクラスに存在するかもしれないアノテーションの名前 nullIOExceptionSE - フォルダーが読み取れない場合 public static StringSE findMainClass(JarFileSE jarFile, StringSE classesLocation) throws IOExceptionSE
jarFile - 検索する jar ファイル classesLocation - クラスを含む jar 内の場所 nullIOExceptionSE - jar ファイルを読み取れない場合 public static StringSE findSingleMainClass(JarFileSE jarFile, StringSE classesLocation) throws IOExceptionSE
jarFile - 検索する jar ファイル classesLocation - クラスを含む jar 内の場所 nullIOExceptionSE - jar ファイルを読み取れない場合 public static StringSE findSingleMainClass(JarFileSE jarFile, StringSE classesLocation, StringSE annotationName) throws IOExceptionSE
annotationName のアノテーションが付けられたメインクラスは、そのようなアノテーションのないメインクラスよりも優先されます。jarFile - 検索する jar ファイル classesLocation - クラスを含む jar 内の場所 annotationName - メインクラスに存在するかもしれないアノテーションの名前 nullIOExceptionSE - jar ファイルを読み取れない場合 Copyright © 2018 Pivotal Software, Inc.. All rights reserved.