|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.jscomp.CallGraph.Function
public class CallGraph.Function
An inner class that represents functions in the call graph. A Function knows how to get its AST node and what Callsites it contains.
Method Summary | |
---|---|
Node |
getAstNode()
Returns the underlying AST node for the function. |
Node |
getBodyNode()
Returns the AST node for the body of the function. |
Collection<CallGraph.Callsite> |
getCallsitesInFunction()
Returns the callsites in this function. |
Collection<CallGraph.Callsite> |
getCallsitesPossiblyTargetingFunction()
Returns a collection of callsites that might call this function. |
String |
getName()
Gets the name of this function. |
boolean |
isAliased()
Returns true if the function is aliased. |
boolean |
isExposedToCallOrApply()
Returns true if the function is ever exposed to ".call" or ".apply". |
boolean |
isMain()
Does this function represent the global "main" function? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isMain()
public Node getAstNode()
public Node getBodyNode()
public String getName()
public Collection<CallGraph.Callsite> getCallsitesInFunction()
public Collection<CallGraph.Callsite> getCallsitesPossiblyTargetingFunction()
computeBackwardGraph
false
.
public boolean isAliased()
public boolean isExposedToCallOrApply()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |