trait ApplicationEntryPointsFinder extends EntryPointFinder
This trait provides an analysis to compute the entry points of a standard command-line application. Please note that a command-line application can provide multiple entry points. This analysis identifies **all** main methods of the given code.
According to the JVM 25 specification, valid main methods must be named "main", must return void and may not be private. They must have either one parameter, which must be an array of strings, or no parameters at all. Main methods can be inherited from interfaces or superclasses. The old semantics before Java 25 can be applied by setting the following configuration value to false:
org.opalj.br.analyses.cg.InitialEntryPointsKey.useJava25Semantics
- Source
- EntryPointFinder.scala
- Note
If it is required to find only a specific main method as entry point, please use the configuration-based entry point finder.
- Alphabetic
- By Inheritance
- ApplicationEntryPointsFinder
- EntryPointFinder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def collectEntryPoints(project: SomeProject): Iterable[DeclaredMethod]
Returns the set of entry points for a given project under analysis.
Returns the set of entry points for a given project under analysis. Entry points may be virtual, if they are defined by the configuration but not contained in the project.
- project
The concrete project for which to compute entry points
- returns
Set of entry points to the project
- Definition Classes
- ApplicationEntryPointsFinder → EntryPointFinder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def requirements(project: SomeProject): ProjectInformationKeys
Returns ProjectInformationKeys required by this EntryPointFinder If no extra keys are required,
Nilcan be returned.Returns ProjectInformationKeys required by this EntryPointFinder If no extra keys are required,
Nilcan be returned.- project
The concrete project for which to compute requirements
- returns
The set of required project information key
- Definition Classes
- EntryPointFinder
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated