Class JMethodCall
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JExpr
com.inductiveautomation.snap.javatree.JMethodCall
This class represents a method call in code.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExprJExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new method call.JMethodCall(JIdentifier anId, List theArgs) Creates a new method call for given identifier (method name) and arg list.
- 
Method SummaryModifier and TypeMethodDescriptionClass[]Returns the arg classes.getArgs()Returns the method arguments.protected StringTries to resolve the class name for this node.Returns the identifier.Returns the method by querying parent class ref.static JMethodCallgetMethodCall(JNode aNode) Returns the method call parent of given node, if available.static ClassgetMethodCallArgClass(JNode aNode) Return the method call arg class of node, if node is MethodCall arg.static intgetMethodCallArgIndex(JMethodCall aMethodCall, JNode aNode) Return the method call arg index of node.protected StringResolves the name from Identifier or Method.Returns the part name.voidSets the method arguments.voidsetIdentifier(JIdentifier anId) Sets the identifier.Methods inherited from class com.inductiveautomation.snap.javatree.JExprgetParentClassRef, getParentExprMethods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
- 
Constructor Details- 
JMethodCallpublic JMethodCall()Creates a new method call.
- 
JMethodCallCreates a new method call for given identifier (method name) and arg list.
 
- 
- 
Method Details- 
getIdentifierReturns the identifier.
- 
setIdentifierSets the identifier.
- 
getArgsReturns the method arguments.
- 
setArgsSets the method arguments.
- 
getArgClassesReturns the arg classes.
- 
getMethodReturns the method by querying parent class ref.
- 
getNameImplResolves the name from Identifier or Method.- Overrides:
- getNameImplin class- JNode
 
- 
getClassNameImplTries to resolve the class name for this node.- Overrides:
- getClassNameImplin class- JNode
 
- 
getNodeStringReturns the part name.- Overrides:
- getNodeStringin class- JNode
 
- 
getMethodCallReturns the method call parent of given node, if available.
- 
getMethodCallArgClassReturn the method call arg class of node, if node is MethodCall arg.
- 
getMethodCallArgIndexReturn the method call arg index of node.
 
-