|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jetbrains.jet.plugin.MainFunctionDetector
public class MainFunctionDetector
Constructor Summary | |
---|---|
MainFunctionDetector(BindingContext bindingContext)
Assumes that the function declaration is already resolved and the descriptor can be found in the bindingContext . |
|
MainFunctionDetector(ResolveSession resolveSession)
Uses the resolveSession to resolve the function declaration. |
Method Summary | |
---|---|
JetNamedFunction |
getMainFunction(java.util.Collection<JetFile> files)
|
boolean |
hasMain(java.util.List<JetDeclaration> declarations)
|
boolean |
isMain(JetNamedFunction function)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainFunctionDetector(@NotNull BindingContext bindingContext)
bindingContext
.
public MainFunctionDetector(@NotNull ResolveSession resolveSession)
resolveSession
to resolve the function declaration. Suitable when the function declaration is not resolved yet.
Method Detail |
---|
public boolean hasMain(@NotNull java.util.List<JetDeclaration> declarations)
public boolean isMain(@NotNull JetNamedFunction function)
@Nullable public JetNamedFunction getMainFunction(@NotNull java.util.Collection<JetFile> files)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |