base generic in new instance
This commit is contained in:
parent
ee5dc9501e
commit
59e54f8111
1 changed files with 4 additions and 0 deletions
|
@ -162,6 +162,10 @@ public class JavaParser extends Parser<JavaElement> {
|
|||
StateTree<JavaElement> value_arg_end = value_arg_begin.then((validator) -> validator.validate((token) -> token.getValue().equals(")")));
|
||||
value_arg_end.end((a,b) -> a);
|
||||
value_arg_end.then(value_call);
|
||||
StateTree<JavaElement> value_generic_begin = value_name.then((validator) -> validator.validate((token) -> token.getValue().equals("<")));
|
||||
|
||||
StateTree<JavaElement> value_generic_end = value_generic_begin.then((validator) -> validator.validate((token) -> token.getValue().equals(">")));
|
||||
value_generic_end.then(value_arg_begin);
|
||||
StateTree<JavaElement> value_arg = value_arg_begin.then(new RedirectStateTree<>(value, (global, local) -> {
|
||||
Integer count = global.get("args");
|
||||
if(count == null) count = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue