public static void setPolyKind ( JCTree tree , PolyKind pkind ) { switch ( tree . getTag ( ) ) { case APPLY : ( ( JCMethodInvocation ) tree ) . polyKind = pkind ; break ; case NEWCLASS : ( ( JCNewClass ) tree ) . polyKind = pkind ; break ; case REFERENCE : ( ( JCMemberReference ) tree ) . refPolyKind = pkind ; break ; default : throw new AssertionError ( "Unexpected tree: " + tree ) ; } }
set polyKind on given tree