public static String print ( ArgModifier modifier ) { return modifier . match ( new ArgModifier . MatchBlock < String > ( ) { @ Override public String _case ( Final x ) { return "final" ; } @ Override public String _case ( Volatile x ) { return "volatile" ; } @ Override public String _case ( Transient x ) { return "transient" ; } } ) ; }
Print arg modifier