The syntax:
testPerson.address.state.length
Translates into the equivalent call in Java:
Person::getAddress().getState().getLength
If you were to place an assignment operator at the end and a value (= 5), then the call to getLength would become a setLength.