|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Expression
koala.dynamicjava.tree.PrimaryExpression
koala.dynamicjava.tree.MethodCall
koala.dynamicjava.tree.StaticMethodCall
public class StaticMethodCall
This class represents the static method call nodes of the syntax tree. For example: "SomeClass.foo(x, y+3)"
| Constructor Summary | |
|---|---|
StaticMethodCall(TypeName typ,
Option<java.util.List<TypeName>> targs,
java.lang.String mn,
java.util.List<? extends Expression> args)
Creates a new node. |
|
StaticMethodCall(TypeName typ,
Option<java.util.List<TypeName>> targs,
java.lang.String mn,
java.util.List<? extends Expression> args,
SourceInfo si)
Creates a new node |
|
StaticMethodCall(TypeName typ,
java.lang.String mn,
java.util.List<? extends Expression> args)
Creates a new node. |
|
StaticMethodCall(TypeName typ,
java.lang.String mn,
java.util.List<? extends Expression> args,
SourceInfo si)
Creates a new node |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
TypeName |
getMethodType()
Returns the type on which this method call applies |
|
void |
setMethodType(ReferenceTypeName t)
Sets the declaring type of the method |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.MethodCall |
|---|
getArguments, getMethodName, getTypeArgs, setArguments, setMethodName, setTypeArgs, setTypeArgs |
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StaticMethodCall(TypeName typ,
Option<java.util.List<TypeName>> targs,
java.lang.String mn,
java.util.List<? extends Expression> args)
typ - the type on which this method call appliestargs - type argumentsmn - the field nameargs - the arguments. Can be null.
java.lang.IllegalArgumentException - if typ is null or mn is null
public StaticMethodCall(TypeName typ,
java.lang.String mn,
java.util.List<? extends Expression> args)
typ - the type on which this method call appliesmn - the field nameargs - the arguments. Can be null.
java.lang.IllegalArgumentException - if typ is null or mn is null
public StaticMethodCall(TypeName typ,
Option<java.util.List<TypeName>> targs,
java.lang.String mn,
java.util.List<? extends Expression> args,
SourceInfo si)
typ - the type on which this method call appliestargs - type argumentsmn - the field nameargs - the arguments. Can be null.
java.lang.IllegalArgumentException - if typ is null or mn is null
public StaticMethodCall(TypeName typ,
java.lang.String mn,
java.util.List<? extends Expression> args,
SourceInfo si)
typ - the type on which this method call appliesmn - the field nameargs - the arguments. Can be null.
java.lang.IllegalArgumentException - if typ is null or mn is null| Method Detail |
|---|
public TypeName getMethodType()
public void setMethodType(ReferenceTypeName t)
java.lang.IllegalArgumentException - if t is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||