コード例 #1
0
 private boolean findClassOrPackageAtFirst() {
   final String name = getReferenceName();
   if (name == null || name.length() == 0 || hasAt()) return false;
   return Character.isUpperCase(name.charAt(0))
       || getParent() instanceof GrReferenceExpressionImpl
           && ((GrReferenceExpressionImpl) getParent()).findClassOrPackageAtFirst();
 }
コード例 #2
0
  private boolean findClassOrPackageAtFirst() {
    final String name = getReferenceName();
    if (StringUtil.isEmpty(name) || hasAt()) return false;

    return Character.isUpperCase(name.charAt(0)) && !isMethodCallRef()
        || getParent() instanceof GrReferenceExpressionImpl
            && ((GrReferenceExpressionImpl) getParent()).findClassOrPackageAtFirst();
  }