foo.bar=1234
is a Operation, foo
and foo.bar
are Path instances and 1234 is a Constant.
You can extract the constant for 1234 by casting the predicate to Operation
Constant constant = (Constant)((Operation)predicate).getArg(1);
What is your use case for this?