| | * Returns the transformed syntax for beginning the payload item. |
| | * |
| | + * @param tree The tree that has a payload that contains a token to |
| | + * transform into a string. |
| | * @return A non-null string, possibly empty. |
| | */ |
| | protected String start( Tree<T> tree ) { |
| | return start( tree.getPayload() ); |
| | } |
| | |
| | /** |
| | * Helper method for returning the start string. |
| | * |
| | + * @param payload The payload that contains a token to transform into |
| | + * a string. |
| | * @return The start string for the parsed item; possibly empty, never null. |
| | */ |
| | protected String start( Payload payload ) { |
| | return start( payload.getStart() ); |
| | } |
| | |
| | /** |
| | * Helper method for returning the start string. |
| | * |
| | + * @param token The token to transform into a string. |
| | * @return The start string for the parsed item; possibly empty, never null. |
| | */ |
| | protected String start( Token token ) { |
| | return token.toString(); |
| | } |
| | |
| | /** |
| | * Returns the transformed syntax for ending the payload item. |
| | * |
| | + * @param tree The tree that has a payload that contains a token to |
| | + * transform into a string. |
| | * @return A non-null string, possibly empty. |
| | */ |
| | protected String stop( Tree<T> tree ) { |
| | return stop( tree.getPayload() ); |
| | } |
| | |
| | /** |
| | * Helper method for returning the stop string. |
| | * |
| | + * @param payload The payload that contains a token to transform into |
| | + * a string. |
| | * @return The stop string for the parsed item; possibly empty, never null. |
| | */ |
| | protected String stop( Payload payload ) { |
| | return stop( payload.getStop() ); |
| | } |
| | |
| | /** |
| | * Helper method for returning the start string. |
| | * |
| | + * @param token The token to transform into a string. |
| | * @return The start string for the parsed item; possibly empty, never null. |
| | */ |