Class JMethodCall
- java.lang.Object
- 
- com.inductiveautomation.snap.javatree.JNode
- 
- com.inductiveautomation.snap.javatree.JExpr
- 
- com.inductiveautomation.snap.javatree.JMethodCall
 
 
 
- 
 public class JMethodCall extends JExpr This class represents a method call in code.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExprJExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
 
- 
 - 
Constructor SummaryConstructors Constructor Description JMethodCall()Creates a new method call.JMethodCall(JIdentifier anId, java.util.List theArgs)Creates a new method call for given identifier (method name) and arg list.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class[]getArgClasses()Returns the arg classes.java.util.List<JExpr>getArgs()Returns the method arguments.protected java.lang.StringgetClassNameImpl()Tries to resolve the class name for this node.JIdentifiergetIdentifier()Returns the identifier.java.lang.reflect.MethodgetMethod()Returns the method by querying parent class ref.static JMethodCallgetMethodCall(JNode aNode)Returns the method call parent of given node, if available.static java.lang.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 java.lang.StringgetNameImpl()Resolves the name from Identifier or Method.java.lang.StringgetNodeString()Returns the part name.voidsetArgs(java.util.List<JExpr> theArgs)Sets the method arguments.voidsetIdentifier(JIdentifier anId)Sets the identifier.- 
Methods inherited from class com.inductiveautomation.snap.javatree.JExprgetParentClassRef, getParentExpr
 - 
Methods 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 Detail- 
JMethodCallpublic JMethodCall() Creates a new method call.
 - 
JMethodCallpublic JMethodCall(JIdentifier anId, java.util.List theArgs) Creates a new method call for given identifier (method name) and arg list.
 
- 
 - 
Method Detail- 
getIdentifierpublic JIdentifier getIdentifier() Returns the identifier.
 - 
setIdentifierpublic void setIdentifier(JIdentifier anId) Sets the identifier.
 - 
getArgspublic java.util.List<JExpr> getArgs() Returns the method arguments.
 - 
setArgspublic void setArgs(java.util.List<JExpr> theArgs) Sets the method arguments.
 - 
getArgClassespublic java.lang.Class[] getArgClasses() Returns the arg classes.
 - 
getMethodpublic java.lang.reflect.Method getMethod() Returns the method by querying parent class ref.
 - 
getNameImplprotected java.lang.String getNameImpl() Resolves the name from Identifier or Method.- Overrides:
- getNameImplin class- JNode
 
 - 
getClassNameImplprotected java.lang.String getClassNameImpl() Tries to resolve the class name for this node.- Overrides:
- getClassNameImplin class- JNode
 
 - 
getNodeStringpublic java.lang.String getNodeString() Returns the part name.- Overrides:
- getNodeStringin class- JNode
 
 - 
getMethodCallpublic static JMethodCall getMethodCall(JNode aNode) Returns the method call parent of given node, if available.
 - 
getMethodCallArgClasspublic static java.lang.Class getMethodCallArgClass(JNode aNode) Return the method call arg class of node, if node is MethodCall arg.
 - 
getMethodCallArgIndexpublic static int getMethodCallArgIndex(JMethodCall aMethodCall, JNode aNode) Return the method call arg index of node.
 
- 
 
-